]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/prepare-other-loc
Big backport from Enterprise
[bacula/bacula] / regress / scripts / prepare-other-loc
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 SCR=$cwd/bin/bacula-ctl
10 sed "s:BACDIRBIN=$cwd/bin:BACDIRBIN=$bin:" $SCR-dir > tmp/1
11 mv tmp/1 $SCR-dir
12 sed "s:BACSDBIN=$cwd/bin:BACSDBIN=$bin:" $SCR-sd > tmp/1
13 mv tmp/1 $SCR-sd
14 sed "s:BACFDBIN=$cwd/bin:BACFDBIN=$bin:" $SCR-fd > tmp/1
15 mv tmp/1 $SCR-fd
16 chmod -x $cwd/bin/bacula-fd $cwd/bin/bacula-sd $cwd/bin/bacula-dir $cwd/bin/bconsole    
17 chmod +x $SCR-*
18 if [ x$plugins != x ]; then
19     mv $cwd/bin/plugins $cwd/bin/plugins.org
20     ln -s $plugins $cwd/bin/plugins
21 fi