#
cwd=`pwd`
if [ $# != 3 ] ; then
- echo "Incorrect number of arguments. Need:"
- echo "setup bacula-src depkgs email-address"
+ echo "Incorrect number of arguments. Got $#. Need:"
+ echo "setup bacula-src email-address --with-DBNAME"
echo " "
exit 1
fi
echo " "
exit 1
fi
-if [ ! -d $2 ] ; then
- cd ..
- cwd=`pwd`
- echo "The regression scripts require DEPKGS as arg 2 but not found!"
- echo " "
- exit 1
-fi
rm -rf build bin
# Copy new source
+echo "Copying source from $1"
cp -rp $1 build
cp scripts/regress-config build
cd build
cd ..
bin/bacula stop
-bin/create_sqlite_database
-bin/drop_sqlite_tables
-bin/make_sqlite_tables
+cd bin
+./create_bacula_database
+./drop_bacula_tables
+./make_bacula_tables
+./grant_bacula_privileges
+cd ..
# Start and stop Bacula to ensure conf files are OK
bin/bacula start
bin/bacula stop