]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/prepare-other-loc2
Fix bug #2346 Dir blocks when max reloads reached
[bacula/bacula] / regress / scripts / prepare-other-loc2
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2017 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6
7 . scripts/functions
8
9 sed "s:SCRIPTDIR=/opt/bacula/scripts:SCRIPTDIR=$cwd/bin:" $cwd/bin/bacula > tmp/1
10 mv tmp/1 $cwd/bin/bacula
11 SCR=$cwd/bin/bacula-ctl
12 sed "s:BACDIRCFG=/opt/bacula/etc:BACDIRCFG=$cwd/bin:" $SCR-dir > tmp/2
13 sed "s:PIDDIR=/opt/bacula/working:PIDDIR=$working:" tmp/2 > tmp/1
14 mv tmp/1 $SCR-dir
15 sed "s:BACSDCFG=/opt/bacula/etc:BACSDCFG=$cwd/bin:" $SCR-sd > tmp/2
16 sed "s:PIDDIR=/opt/bacula/working:PIDDIR=$working:" tmp/2 > tmp/1
17 mv tmp/1 $SCR-sd
18 sed "s:BACFDCFG=/opt/bacula/etc:BACFDCFG=$cwd/bin:" $SCR-fd > tmp/2
19 sed "s:PIDDIR=/opt/bacula/working:PIDDIR=$working:" tmp/2 > tmp/1
20 mv tmp/1 $SCR-fd
21 rm -f tmp/2
22 chmod -x $cwd/bin/bacula-fd $cwd/bin/bacula-sd $cwd/bin/bacula-dir $cwd/bin/bconsole
23 chmod +x $SCR-* $cwd/bin/bacula
24 if [ x$plugins != x ]; then
25     mv $cwd/bin/plugins $cwd/bin/plugins.org
26     ln -s $plugins $cwd/bin/plugins
27 fi