diff options
author | Dominik Schrempf | 2019-04-30 20:35:39 +0200 |
---|---|---|
committer | Dominik Schrempf | 2019-04-30 20:35:39 +0200 |
commit | 13c2a7c9a249023c59fba7493e5f2f53cb8aa232 (patch) | |
tree | 8787f38e495d0d77ebf8df2a45308b4b771b6cb1 /nextcloud-systemd-timers.install | |
parent | d0012e1d4d4f622ec6e9a0f0e59aa041a8bfb1c1 (diff) | |
download | aur-13c2a7c9a249023c59fba7493e5f2f53cb8aa232.tar.gz |
inform about dir change
Diffstat (limited to 'nextcloud-systemd-timers.install')
-rw-r--r-- | nextcloud-systemd-timers.install | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/nextcloud-systemd-timers.install b/nextcloud-systemd-timers.install index 9c4d44ad0ee2..cdf3a5b9f904 100644 --- a/nextcloud-systemd-timers.install +++ b/nextcloud-systemd-timers.install @@ -34,11 +34,16 @@ post_install() { echo '$ systemctl list-timers' } -## arg 1: the new package version -## arg 2: the old package version -#pre_upgrade() { - # do something here -#} +# arg 1: the new package version +# arg 2: the old package version +pre_upgrade() { + if [[ $1 == 0.6 ]] + then + echo "The systemd unit directory has changed from" + echo "/etc/systemd/system to /usr/lib/systemd/system." + echo "Please deactivate the old units, and activate the new ones after the upgrade." + fi +} ## arg 1: the new package version ## arg 2: the old package version |