diff options
author | Arthur Vuillard | 2016-11-13 22:19:12 +0100 |
---|---|---|
committer | Arthur Vuillard | 2016-11-13 22:19:12 +0100 |
commit | 0b708ec4335360ece034d7123c4ccb46c743223a (patch) | |
tree | ea59048aaea4de0da1ae5a8ccd9c97cc61ce04e5 | |
parent | 6d9fa3a8a6e9082f15117230aae55db75000ce08 (diff) | |
download | aur-0b708ec4335360ece034d7123c4ccb46c743223a.tar.gz |
backup epoc and restart
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | watchghost.install | 5 |
2 files changed, 13 insertions, 1 deletions
@@ -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 f03d211ce3d3..fce554dae603 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() { |