},
'password' => '${DB_PW}',
'template_dir' => '${SHARE_DIR}/bweb/tpl',
+ 'lang' => 'en',
'dbi' => 'DBI:mysql:database=bacula',
'error' => '',
'debug' => 0,
chown ${HTTP_USER} ${CONF_DIR}/bweb.conf
# copy the bweb template file
-if [ ! -d ${SHARE_DIR}/bweb/tpl ] ; then
- mkdir -p ${SHARE_DIR}/bweb/tpl
+if [ ! -d ${SHARE_DIR}/bweb/tpl/en ] ; then
+ mkdir -p ${SHARE_DIR}/bweb/tpl/{en,fr,es}
fi
-install -m 644 -o root -g root tpl/*.tpl ${SHARE_DIR}/bweb/tpl
+install -m 644 -o root -g root lang/tpl/en/*.tpl ${SHARE_DIR}/bweb/tpl/en
+install -m 644 -o root -g root lang/tpl/es/*.tpl ${SHARE_DIR}/bweb/tpl/es
+install -m 644 -o root -g root lang/tpl/fr/*.tpl ${SHARE_DIR}/bweb/tpl/fr
# copy the bweb graphics elements (bweb elements must reside in /bweb)
if [ ! -d ${WEB_DIR} ] ; then
echo " root# mysql bacula < script/bweb-mysql.sql"
echo " or"
echo " postgres# echo 'CREATE PROCEDURAL LANGUAGE plpgsql;' | psql bacula"
-echo " postgres# psql -U bacula -P passwd < script/bweb/bweb-postgresql.sql"
+echo " postgres# psql -U bacula bacula < script/bweb/bweb-postgresql.sql"
echo " "
# done !