]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
BEE Backport regress/scripts/setup
authorRadoslaw Korzeniewski <radekk@inteos.pl>
Fri, 4 Sep 2020 12:44:56 +0000 (14:44 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:56 +0000 (09:02 +0100)
This commit is the result of the squash of the following main commits:

Author: Radoslaw Korzeniewski <radekk@inteos.pl>
Date:   Mon Apr 16 16:35:23 2018 +0200

    Fix 'grep -m' when '-m' option is not available.

Author: RadosÅ‚aw Korzeniewski <radekk@inteos.pl>
Date:   Tue Jan 2 13:49:35 2018 +0100

    regress: Add scripts for XenServer Plugin

    regress: Fix for script for XenServer Plugin

    regress: Fix syntax error in regression script

    regress: Corrections to the regression scripts.

    regress: More fixes to the regression test scripts for XenServer Plugin.

regress/scripts/setup

index 2b69b4bc04d4db4a8490816685c8a7a68c13752b..97989b6fab18f9eff13356677347d44c01e725f4 100755 (executable)
@@ -97,6 +97,8 @@ if [ x$PREBUILT = xyes ]; then
   cp ${bin}/../scripts/storage*-ctl.conf ${cwd}/bin
   cp ${bin}/../scripts/mtx-changer ${cwd}/bin
   cp ${bin}/../scripts/mtx-changer.conf ${cwd}/bin
+  cp ${bin}/../scripts/btools.py ${cwd}/bin
+  cp -a ${bin}/../scripts/btoolslib ${cwd}/bin
   cp ${bin}/bconsole ${cwd}/bin
   cd ${cwd}/bin
   for i in create_*_database drop_*_database drop_*_tables make_*_tables grant_*_privileges; do
@@ -122,7 +124,10 @@ cd ${cwd}
 bin/bacula stop -KILL
 
 mkdir -p working
+chmod 755 bin
 cd bin
+# workaround for postgres user when permission denied
+chown postgres *_postgresql_* 2> /dev/null
 echo "Running database creation scripts"
 ./create_bacula_database
 ./drop_bacula_tables