chdir to /var/bacula before starting daemons, otherwise it's left in
the cwd of the process starting bacula, which causes problems running make_catalog_backup.pl if that dir isn't readable.
This commit is contained in:
parent
91ee683493
commit
9d8ae42212
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.121 2018/01/14 14:42:18 rpe Exp $
|
||||
# $OpenBSD: Makefile,v 1.122 2018/02/09 09:31:50 sthen Exp $
|
||||
|
||||
# XXX building this port while a version is already installed on the
|
||||
# system will lead to unexpected hidden dependencies!!!
|
||||
@ -18,8 +18,8 @@ PKGNAME-bat= bacula-bat-$V
|
||||
PKGNAME-mysql= bacula-mysql-$V
|
||||
PKGNAME-pgsql= bacula-pgsql-$V
|
||||
PKGNAME-sqlite3= bacula-sqlite3-$V
|
||||
REVISION-main= 1
|
||||
REVISION-server= 0
|
||||
REVISION-main= 2
|
||||
REVISION-server= 1
|
||||
|
||||
CATEGORIES= sysutils
|
||||
|
||||
|
13
sysutils/bacula/patches/patch-scripts_bacula-ctl-dir_in
Normal file
13
sysutils/bacula/patches/patch-scripts_bacula-ctl-dir_in
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-scripts_bacula-ctl-dir_in,v 1.1 2018/02/09 09:31:50 sthen Exp $
|
||||
|
||||
Index: scripts/bacula-ctl-dir.in
|
||||
--- scripts/bacula-ctl-dir.in.orig
|
||||
+++ scripts/bacula-ctl-dir.in
|
||||
@@ -219,6 +219,7 @@ case "$1" in
|
||||
start)
|
||||
[ -x ${BACDIRBIN}/bacula-dir ] && {
|
||||
echo "Starting the $Bacula Director daemon"
|
||||
+ cd ${SUBSYSDIR}
|
||||
OPTIONS=''
|
||||
if [ "${DIR_USER}" != '' ]; then
|
||||
OPTIONS="${OPTIONS} -u ${DIR_USER}"
|
13
sysutils/bacula/patches/patch-scripts_bacula-ctl-fd_in
Normal file
13
sysutils/bacula/patches/patch-scripts_bacula-ctl-fd_in
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-scripts_bacula-ctl-fd_in,v 1.1 2018/02/09 09:31:50 sthen Exp $
|
||||
|
||||
Index: scripts/bacula-ctl-fd.in
|
||||
--- scripts/bacula-ctl-fd.in.orig
|
||||
+++ scripts/bacula-ctl-fd.in
|
||||
@@ -216,6 +216,7 @@ case "$1" in
|
||||
start)
|
||||
[ -x ${BACFDBIN}/bacula-fd ] && {
|
||||
echo "Starting the $Bacula File daemon"
|
||||
+ cd ${SUBSYSDIR}
|
||||
OPTIONS=''
|
||||
if [ "${FD_USER}" != '' ]; then
|
||||
OPTIONS="${OPTIONS} -u ${FD_USER}"
|
13
sysutils/bacula/patches/patch-scripts_bacula-ctl-sd_in
Normal file
13
sysutils/bacula/patches/patch-scripts_bacula-ctl-sd_in
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-scripts_bacula-ctl-sd_in,v 1.1 2018/02/09 09:31:50 sthen Exp $
|
||||
|
||||
Index: scripts/bacula-ctl-sd.in
|
||||
--- scripts/bacula-ctl-sd.in.orig
|
||||
+++ scripts/bacula-ctl-sd.in
|
||||
@@ -216,6 +216,7 @@ case "$1" in
|
||||
start)
|
||||
[ -x ${BACSDBIN}/bacula-sd ] && {
|
||||
echo "Starting the $Bacula Storage daemon"
|
||||
+ cd ${SUBSYSDIR}
|
||||
OPTIONS=''
|
||||
if [ "${SD_USER}" != '' ]; then
|
||||
OPTIONS="${OPTIONS} -u ${SD_USER}"
|
Loading…
x
Reference in New Issue
Block a user