summaryrefslogtreecommitdiff
path: root/bareos
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-11-15 13:15:21 +0100
committerErich Eckner <git@eckner.net>2022-11-15 13:15:21 +0100
commit7627fbbeae57ff10ef830aecf4d0fb0bd98516c5 (patch)
tree945c9047b26c1decfbdb76f011bc281172b56b41 /bareos
parentbb95fad55a750ea403910b5a3e7ed6f86e0b938a (diff)
downloadarchlinuxewe-7627fbbeae57ff10ef830aecf4d0fb0bd98516c5.tar.xz
bareos: clean up PIDDir stuff
Diffstat (limited to 'bareos')
-rw-r--r--bareos/PKGBUILD8
1 files changed, 0 insertions, 8 deletions
diff --git a/bareos/PKGBUILD b/bareos/PKGBUILD
index 8a0b12b13..a9f773d35 100644
--- a/bareos/PKGBUILD
+++ b/bareos/PKGBUILD
@@ -100,7 +100,6 @@ build() {
-Dsd-user=$pkgbase \
-Dsd-group=$pkgbase \
-Dfd-user=root \
- -Dpid-dir=/run/bareos \
-Dfd-group=root \
-Dconfigtemplatedir=/usr/share/$pkgbase/config \
-Dworking-dir=/var/lib/$pkgbase \
@@ -121,16 +120,9 @@ build() {
/^StandardOutput=syslog$/d
/\[Service\]/a RuntimeDirectory=bareos/'"${_daemon}"'
s@^\(WorkingDirectory=\).*$@\1/run/bareos/'"${_daemon}"'@
- s@^\(PIDFile=\).*/\([^/]\+\)$@\1/run/bareos/'"${_daemon}"'/\2@
' "$srcdir/bareos-Release-$pkgver/core/platforms/systemd/bareos-${_daemon}.service"
done
- sed -i '1 a PID Directory = /run/bareos/dir' \
- "$srcdir/install/usr/share/bareos/config/bareos-dir.d/director/bareos-dir.conf"
- sed -i '1 a PID Directory = /run/bareos/sd' \
- "$srcdir/install/usr/share/bareos/config/bareos-sd.d/storage/bareos-sd.conf"
- sed -i '1 a PID Directory = /run/bareos/fd' \
- "$srcdir/install/usr/share/bareos/config/bareos-fd.d/client/myself.conf"
find "$srcdir/install/usr/share/bareos/config" -type f \
-exec sed -i 's@/usr/local/bin/@/usr/bin/@g' {} \;
}