summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Vuillard2016-11-13 22:19:12 +0100
committerArthur Vuillard2016-11-13 22:19:12 +0100
commit0b708ec4335360ece034d7123c4ccb46c743223a (patch)
treeea59048aaea4de0da1ae5a8ccd9c97cc61ce04e5
parent6d9fa3a8a6e9082f15117230aae55db75000ce08 (diff)
downloadaur-0b708ec4335360ece034d7123c4ccb46c743223a.tar.gz
backup epoc and restart
-rw-r--r--PKGBUILD9
-rw-r--r--watchghost.install5
2 files changed, 13 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 68095ce3d6a..d843b43d328 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,9 @@
name=watchghost
pkgname=$name-git
-pkgver=0.1.0.git_99.0005a9e
+pkgver=0.1.0.git_110.600f606
pkgrel=1
+epoch=1
pkgdesc="Your invisible but loud monitoring pet"
arch=('any')
url='https://gitlab.com/localg-host/watchghost/'
@@ -13,6 +14,12 @@ makedepends=('python-setuptools')
source=('git+https://gitlab.com/localg-host/watchghost.git')
sha256sums=('SKIP')
install=watchghost.install
+backup=(
+ 'etc/watchghost/watchers'
+ 'etc/watchghost/loggers'
+ 'etc/watchghost/servers'
+ 'etc/watchghost/groups'
+)
pkgver(){
cd $srcdir/$name
diff --git a/watchghost.install b/watchghost.install
index f03d211ce3d..fce554dae60 100644
--- a/watchghost.install
+++ b/watchghost.install
@@ -6,6 +6,11 @@ post_install() {
post_upgrade() {
systemd-sysusers watchghost.conf
systemctl daemon-reload
+ systemctl is-active watchghost
+ active=$?
+ if [ $active -eq 0 ] ; then
+ systemctl restart watchghost
+ fi
}
pre_remove() {