]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/install_bweb
bweb: Update some GPL2 notice to AGPL
[bacula/bacula] / gui / bweb / install_bweb
index 97daef2e39359982f03603ca0e61eb709e90efca..ec4fbdfb18c3280aa129b69f8c9e8bbc16ebeba1 100755 (executable)
@@ -90,7 +90,8 @@ cat > ${CONF_DIR}/bweb.conf <<END_OF_DATA
        }, 'Bweb::Autochanger' )
    },
   'password' => '${DB_PW}',
-  'template_dir' => '${SHARE_DIR}/bweb/en/tpl',
+  'template_dir' => '${SHARE_DIR}/bweb/tpl',
+  'lang' => 'en',
   'dbi' => 'DBI:mysql:database=bacula',
   'error' => '',
   'debug' => 0,
@@ -103,14 +104,16 @@ fi
 chown ${HTTP_USER} ${CONF_DIR}/bweb.conf
 
 # copy the bweb template file
-if [ ! -d ${SHARE_DIR}/bweb/en/tpl ] ; then
-   mkdir -p ${SHARE_DIR}/bweb/en/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  lang/en/tpl/*.tpl ${SHARE_DIR}/bweb/en/tpl
+install -m 644 -o root -g root  lang/en/tpl/*.tpl ${SHARE_DIR}/bweb/tpl/en
+install -m 644 -o root -g root  lang/es/tpl/*.tpl ${SHARE_DIR}/bweb/tpl/es
+install -m 644 -o root -g root  lang/fr/tpl/*.tpl ${SHARE_DIR}/bweb/tpl/fr
 
 # copy the bweb graphics elements (bweb elements must reside in /bweb)
-if [ ! -d ${WEB_DIR} ] ; then
-   mkdir ${WEB_DIR}/bweb
+if [ ! -d ${WEB_DIR}/bweb ] ; then
+   mkdir -p ${WEB_DIR}/bweb
 fi
 install -m 644 -o root -g root  html/*.{js,png,css,gif,ico,html} ${WEB_DIR}/bweb