Add instructions for creating the database
Add dir_user and dir_group as owner in case of non-root
Signed-off-by: Bruno Friedmann <bruno@ioda-net.ch>
Signed-off-by: Marco van Wieringen <mvw@planets.elm.net>
db_name=@db_name@
sqlite3 $* ${db_name}.db <<END-OF-DATA
+.databases
END-OF-DATA
+# Allow non root access
+chown @dir_user@:@dir_group@ ${db_name}.db
+chmod 0640 ${db_name}.db
exit 0
#!/bin/sh
#
-# Shell script to update MySQL tables from Bacula Community version 5.0.x to 5.2.x
+# Shell script to update sqlite3 tables from Bacula Community version 5.0.x to 5.2.x
#
echo " "
-echo "This script will update a Bacula MySQL database from version 12 to 14"
+echo "This script will update a Bacula sqlite3 database from version 12 to 14"
echo " which is needed to convert from Bacula Community version 5.0.x to 5.2.x"
echo " "