diff options
author | Michael Spradling | 2018-04-02 09:31:02 -0400 |
---|---|---|
committer | Michael Spradling | 2018-04-02 09:31:02 -0400 |
commit | ede71db441711ad2ac9ec31e93e3785c7fa7ff85 (patch) | |
tree | 11a7f0917290df1afa84ecdcc04011e34edd32c4 | |
parent | c222a9f5b2c5a9cb41c7430af88c5c370645e256 (diff) | |
download | aur-ede71db441711ad2ac9ec31e93e3785c7fa7ff85.tar.gz |
Update systemd files to create rundir by default
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -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 @@ -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 } |