summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Spradling2018-04-02 09:31:02 -0400
committerMichael Spradling2018-04-02 09:31:02 -0400
commitede71db441711ad2ac9ec31e93e3785c7fa7ff85 (patch)
tree11a7f0917290df1afa84ecdcc04011e34edd32c4
parentc222a9f5b2c5a9cb41c7430af88c5c370645e256 (diff)
downloadaur-ede71db441711ad2ac9ec31e93e3785c7fa7ff85.tar.gz
Update systemd files to create rundir by default
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f6fa160dc8e..637f3b2638b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = bareos
pkgdesc = Bareos - Backup Archiving REcovery Open Sourced
pkgver = 17.2.5
- pkgrel = 2
+ pkgrel = 3
url = http://www.bareos.org
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 46ea7f3c41f..ce5a735b5aa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,7 +22,7 @@ pkgname=("${pkgbase}-common"
"${pkgbase}-storage-python-plugin")
pkgver=17.2.5
-pkgrel=2
+pkgrel=3
arch=(i686 x86_64 armv7h aarch64)
groups=('bareos')
pkgdesc="Bareos - Backup Archiving REcovery Open Sourced"
@@ -285,6 +285,8 @@ package_bareos-director() {
_cp "$srcdir/install/$f" "$pkgdir/$f"
done
+ # Currently upstream systemd file does not automatically create run directory
+ sed -i '/\[Service\]/a RuntimeDirectory=bareos' $srcdir/bareos/platforms/systemd/bareos-dir.service
_cp $srcdir/bareos/platforms/systemd/bareos-dir.service $pkgdir/usr/lib/systemd/system/bareos-dir.service
}
@@ -341,6 +343,8 @@ package_bareos-filedaemon() {
_cp $srcdir/install/$f $pkgdir/$f
done
+ # Currently upstream systemd file does not automatically create run directory
+ sed -i '/\[Service\]/a RuntimeDirectory=bareos' $srcdir/bareos/platforms/systemd/bareos-fd.service
_cp $srcdir/bareos/platforms/systemd/bareos-fd.service $pkgdir/usr/lib/systemd/system/bareos-fd.service
}
@@ -366,6 +370,8 @@ package_bareos-storage() {
done
install -d $pkgdir/var/lib/bareos/storage
+ # Currently upstream systemd file does not automatically create run directory
+ sed -i '/\[Service\]/a RuntimeDirectory=bareos' $srcdir/bareos/platforms/systemd/bareos-sd.service
_cp $srcdir/bareos/platforms/systemd/bareos-sd.service $pkgdir/usr/lib/systemd/system/bareos-sd.service
}