summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ruhier2018-03-22 01:32:41 +0100
committerAnthony Ruhier2018-03-22 01:32:41 +0100
commite3ff1a02f27b74df5fed5f11c40a8ca298162725 (patch)
tree0cf6b4ae334f5dfd16c10a1df36a976fdf24149c
parentee40b8660b2379d75845306a90e15d1f4c661bde (diff)
downloadaur-e3ff1a02f27b74df5fed5f11c40a8ca298162725.tar.gz
Move systemd-tmpfiles inside version check
Do not start it if not useful
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--headphones.install14
3 files changed, 9 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index db2e445bb69b..39fd7091e89b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = headphones-git
pkgdesc = Music downloader for usenet and torrents.
pkgver = 0.5.18.r159.gda9287d7
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/rembo10/headphones
install = headphones.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index d2bb0b91ac02..4d7ab0afdc23 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=headphones-git
pkgver=0.5.18.r159.gda9287d7
-pkgrel=4
+pkgrel=5
pkgdesc="Music downloader for usenet and torrents."
arch=('any')
url="https://github.com/rembo10/headphones"
diff --git a/headphones.install b/headphones.install
index 07c854508797..200555746b19 100644
--- a/headphones.install
+++ b/headphones.install
@@ -1,26 +1,26 @@
post_upgrade() {
- # needed because started before hooks
- sysemd-sysusers
- systemd-tmpfiles --create
if (( $(vercmp "0.5.18.r159.gda9287d7-2" "$2") > 0 )); then
+ # needed because started before hooks
+ systemd-tmpfiles --create
+
if [[ -f /opt/headphones/config.ini && ! -f /var/lib/headphones/config.ini ]]; then
- cp -a /opt/headphones/config.ini /var/lib/headphones/config.ini
+ cp -a {/opt,/var/lib}/headphones/config.ini
echo "Copied config.ini from /opt/headphones/ -> /var/lib/headphones/"
fi
if [[ -f /opt/headphones/headphones.db && ! -f /var/lib/headphones/headphones.db ]]; then
- cp -a /opt/headphones/headphones.db /var/lib/headphones/headphones.db
+ cp -a {/opt,/var/lib}/headphones/headphones.db
echo "Copied headphones.db from /opt/headphones/ -> /var/lib/headphones/"
fi
if [[ -d /opt/headphones/logs && ! -d /var/lib/headphones/logs ]]; then
- cp -a /opt/headphones/logs /var/lib/headphones/logs
+ cp -a {/opt,/var/lib}/headphones/logs
echo "Copied logs from /opt/headphones/ -> /var/lib/headphones/"
fi
if [[ -d /opt/headphones/cache && ! -d /var/lib/headphones/cache ]]; then
- cp -a /opt/headphones/cache /var/lib/headphones/cache
+ cp -a {/opt,/var/lib}/headphones/cache
echo "Copied cache from /opt/headphones/ -> /var/lib/headphones/"
fi
fi