summarylogtreecommitdiffstats
path: root/psd.install
diff options
context:
space:
mode:
authorgraysky2015-09-17 05:40:19 -0400
committergraysky2015-09-17 05:40:19 -0400
commit81f422bff74a664b73bd8f1415be1cd9d439a863 (patch)
tree0465e35138d4b38fc8ead43b1aca438cc290ce2e /psd.install
parent63c0afa5f27bd6e6b61249b59e3e70fea9449d03 (diff)
downloadaur-81f422bff74a664b73bd8f1415be1cd9d439a863.tar.gz
Update to 6.10-2
Diffstat (limited to 'psd.install')
-rw-r--r--psd.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/psd.install b/psd.install
index 320fc0eaf530..0c28cb275cf5 100644
--- a/psd.install
+++ b/psd.install
@@ -64,6 +64,20 @@ pre_upgrade() {
if [ $(vercmp $2 6.07) -lt 0 ]; then
echo '-> Recommend that you diff /usr/share/psd/psd.conf against ~/.config/psd/psd.conf'
fi
+
+ # version 6.10 relocates pid file
+ if [ $(vercmp $2 6.10) -lt 0 ]; then
+ for i in $(users); do
+ running="$(su $i -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user is-active psd')"
+ if [[ "$running" = "active" ]]; then
+ su $i -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user stop psd.service'
+ su $i -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user daemon-reload'
+ echo '-> Internal changes to psd require it to be stopped now before updating.'
+ echo '-> Users of overlayfs: you must run the following before starting the service: psd p'
+ fi
+ done
+ fi
+
}
pre_remove() {