]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl use conffiles instead of post install script
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Jan 2007 21:49:41 +0000 (21:49 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Jan 2007 21:49:41 +0000 (21:49 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3903 91ce42f0-d328-0410-95d8-f526ca767f89

gui/debian/bweb.conffiles [new file with mode: 0644]
gui/debian/bweb.dirs
gui/debian/bweb.postinst
gui/debian/changelog
gui/debian/rules

diff --git a/gui/debian/bweb.conffiles b/gui/debian/bweb.conffiles
new file mode 100644 (file)
index 0000000..fda2762
--- /dev/null
@@ -0,0 +1 @@
+/etc/bacula/bweb.conf
index 13a85e606b406fd9c8caaa9a655cf645f444e391..720d96f0f4ca01c5ecc7b234c54ef0ea70a4040b 100644 (file)
@@ -1,4 +1,4 @@
-etc/bweb
+etc/bacula
 etc/apache/conf.d
 usr/lib/cgi-bin/bweb
 usr/share/doc/bweb
index 8437eba472416b0ac2feb34d172c4b522a890d49..6b274a273923eb430b28a81863f3f5914bd2f9a6 100644 (file)
@@ -7,28 +7,21 @@ db_version 2.0
 
 if [ "$1" = "configure" ] ; then
  if [ -f /etc/bweb/config ] ; then
-     echo "/etc/bweb/config have moved to /etc/bacula/bweb.conf"
-     echo "you can remove /etc/bweb"
-     [ ! -d /etc/bacula ] && mkdir /etc/bacula
-     cp -p /etc/bweb/config /etc/bacula/bweb.conf
-     sed -i 's!/etc/bweb/config!/etc/bacula/bweb.conf!' /etc/bacula/bweb.conf
+     echo "WARNING: /etc/bweb/config is no longer in use."
+     echo "Please, use /etc/bacula/bweb.conf instead."
  fi
 
- if [ ! -f /etc/bacula/bweb.conf ] ; then
      echo '$VAR1 = { template_dir => "/usr/share/bweb/tpl", fv_write_path => "/var/spool/bweb" };' > /etc/bacula/bweb.conf
+ chown www-data:root /etc/bacula/bweb.conf
chmod 600 /etc/bacula/bweb.conf
 
-       chown www-data:root /etc/bacula/bweb.conf
-       chmod 640 /etc/bacula/bweb.conf
-
-       chown www-data:root /var/spool/bweb
-       chmod 700 /var/spool/bweb
+ chown www-data:root /var/spool/bweb
+ chmod 700 /var/spool/bweb
        
-       echo
-       echo "If you are using postgresql, you have to load /usr/share/bweb/bweb-postgresql.sql in your database"
-
-       echo "postgres@localhost:~$ psql bacula < /usr/share/bweb/bweb-postgresql.sql"
-        echo 
-        echo "You can use user/passwd (see /etc/apache/conf.d/bweb.conf)"
-        echo "You have to reload your apache configuration"
- fi
+ echo
+ echo "If you are using postgresql, you have to load /usr/share/bweb/bweb-postgresql.sql in your database"
+ echo "postgres@localhost:~$ psql bacula < /usr/share/bweb/bweb-postgresql.sql"
+ echo 
+ echo "You can use user/passwd (see /etc/apache/conf.d/bweb.conf)"
+ echo "You have to reload your apache configuration"
 fi
index d23e620818217c1e28ec4ec2d876f30a543c5c87..df0c5c71efc214526a414a0af179b4b842cda310 100644 (file)
@@ -2,6 +2,7 @@ bweb (2.0.0-2) stable; urgency=low
 
   * Add french tpl in /usr/share/bweb/fr/tpl
   * Add favicon.ico
+  * Change /etc/bacula/bweb.conf initialisation
 
  -- Eric Bollengier <eb.homelinux.org>  Mon,  01 Jan 2007 09:22:47 +0000
        
index 3a554fc0d0a6fdc7ab6e12804cfe668231f75fd5..7610594ba0ac6eec258cb98079e579c30e854bf8 100755 (executable)
@@ -65,6 +65,8 @@ install-indep:
        install -m 644 bweb/html/*.html debian/bweb/usr/share/bweb/html
        install -m 644 bweb/html/*.ico debian/bweb/usr/share/bweb/html
        install -m 644 bweb/script/bweb-postgresql.sql debian/bweb/usr/share/bweb
+       echo '$$VAR1 = { template_dir => "/usr/share/bweb/tpl", fv_write_path => "/var/spool/bweb" };' > debian/bweb/etc/bacula/bweb.conf
+       chmod 600 debian/bweb/etc/bacula/bweb.conf
        dh_install -i
        touch install-indep-stamp