summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraysky2015-10-26 15:27:41 -0400
committergraysky2015-10-26 15:27:41 -0400
commit98b747257772cbfe6b9322af8e9ea9234b4f3d1a (patch)
treea9d9c9d3ae3cda578541525e663669fe447780c3
parent37f0f0a46aa3f310a617a637a384cbbfb4ca3f94 (diff)
downloadaur-98b747257772cbfe6b9322af8e9ea9234b4f3d1a.tar.gz
Update to 6.12.r7.gd103baf.unstable-1
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--psd.install21
3 files changed, 11 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ede8333840e5..3260fb14f090 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = profile-sync-daemon-git
pkgdesc = Syncs browser profiles to tmpfs. Unstable git version!
- pkgver = 6.12.r2.gf49c743.unstable
+ pkgver = 6.12.r7.gd103baf.unstable
pkgrel = 1
url = https://github.com/graysky2/profile-sync-daemon
install = psd.install
diff --git a/PKGBUILD b/PKGBUILD
index 27e72373c64f..ffbbbe07c792 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname='profile-sync-daemon-git'
_pkgname='profile-sync-daemon'
-pkgver=6.12.r2.gf49c743.unstable
+pkgver=6.12.r7.gd103baf.unstable
pkgrel=1
pkgdesc='Syncs browser profiles to tmpfs. Unstable git version!'
arch=('any')
diff --git a/psd.install b/psd.install
index 9b328fdaf910..fc7ebe9e9ea5 100644
--- a/psd.install
+++ b/psd.install
@@ -29,18 +29,15 @@ pre_upgrade() {
fi
fi
- # version 6.01 redefines the location of tmpfs for the software so it is
- # required that pacman stop the user service here if running
- if [ $(vercmp $2 6.01) -lt 0 ]; then
- for i in $(users); do
- running="$(su $i -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user is-active psd')"
- if [[ "$running" = "active" ]]; then
- su $i -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user stop psd.service'
- echo '-> Internal changes to psd require it to be stopped now before updating.'
- echo '-> Recommend that you diff /usr/share/doc/psd/psd.conf against ~/.psd/psd.conf'
- fi
- done
- fi
+ # in general stop and restart always when using dev version
+ 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'
+ echo '-> Dev version of psd so ALWAYS a good idea to stop running psd before updating.'
+ su $i -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user daemon-reload'
+ fi
+ done
}
pre_remove() {