# get a config file
mkdir -m 755 /etc/bacula
chown root:bacula /etc/bacula
- echo '$VAR1 = { template_dir => "/usr/share/bweb/tpl" };' > /etc/bacula/bweb.conf
+ echo '$VAR1 = { template_dir => "/usr/share/bweb/en/tpl" };' > /etc/bacula/bweb.conf
chown www-data /etc/bacula/bweb.conf
# copy the bweb template file
mkdir -p /usr/share/bweb/tpl
- install -m 644 -o root -g root bweb/tpl/*.tpl /usr/share/bweb/tpl
+ install -m 644 -o root -g root bweb/lang/en/tpl/*.tpl /usr/share/bweb/en/tpl
# copy the bweb graphics elements (bweb elements must reside in /bweb)
mkdir /var/www/bweb
################ USE FRENCH VERSION ############################
-Simply use lang/fr/tpl/*.tpl files instead of tpl/*.tpl
+Simply use lang/fr/tpl/*.tpl files instead of lang/en/tpl/*.tpl
################ INSTALL PERL LIBRARY ##########################
}, 'Bweb::Autochanger' )
},
'password' => 'xxx',
- 'template_dir' => '/usr/share/bweb/tpl',
+ 'template_dir' => '/usr/share/bweb/en/tpl',
'dbi' => 'DBI:mysql:database=bacula',
'error' => '',
'debug' => 0,
}, 'Bweb::Autochanger' )
},
'password' => '${DB_PW}',
- 'template_dir' => '${SHARE_DIR}/bweb/tpl',
+ 'template_dir' => '${SHARE_DIR}/bweb/en/tpl',
'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/en/tpl ] ; then
+ mkdir -p ${SHARE_DIR}/bweb/en/tpl
fi
-install -m 644 -o root -g root tpl/*.tpl ${SHARE_DIR}/bweb/tpl
+install -m 644 -o root -g root lang/en/tpl/*.tpl ${SHARE_DIR}/bweb/en/tpl
# 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 !
+23Dec07
+ebl WARNING: now, bweb/tpl contains main tpl files
+ for english version, you have to use bweb/lang/en/tpl
+
21Dec07
ebl Use main tpl for editing, and use scripts to
generate other lang.