]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/prepare-other-loc
e70b6e6b1e382b4e6f6c31fa6b9452af510f8d99
[bacula/bacula] / regress / scripts / prepare-other-loc
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6
7
8 . scripts/functions
9
10 SCR=$cwd/bin/bacula-ctl
11 sed "s:BACDIRBIN=$cwd/bin:BACDIRBIN=$bin:" $SCR-dir > tmp/1
12 mv tmp/1 $SCR-dir
13 sed "s:BACSDBIN=$cwd/bin:BACSDBIN=$bin:" $SCR-sd > tmp/1
14 mv tmp/1 $SCR-sd
15 sed "s:BACFDBIN=$cwd/bin:BACFDBIN=$bin:" $SCR-fd > tmp/1
16 mv tmp/1 $SCR-fd
17 chmod -x $cwd/bin/bacula-fd $cwd/bin/bacula-sd $cwd/bin/bacula-dir $cwd/bin/bconsole    
18 chmod +x $SCR-*
19 if [ x$plugins != x ]; then
20     mv $cwd/bin/plugins $cwd/bin/plugins.org
21     ln -s $plugins $cwd/bin/plugins
22 fi
23