]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix remove users file during upgrade deb packages
authorMarcin Haba <marcin.haba@bacula.pl>
Sun, 22 Nov 2015 14:28:58 +0000 (15:28 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Sun, 22 Nov 2015 14:28:58 +0000 (15:28 +0100)
gui/baculum/debian/baculum-apache2.prerm
gui/baculum/debian/baculum-lighttpd.prerm

index ff8e5c42557188956b9b350c9c27c2ae9138b50c..6553bb49ad2d18133627e21019be73a0cc3548c9 100644 (file)
@@ -2,8 +2,16 @@
 
 set -e
 
-rm /usr/share/baculum/htdocs/protected/Data/baculum.users
+if [ "$1" = "remove" ]
+then
+       [ ! -e /usr/share/baculum/htdocs/protected/Data/settings.conf ] ||
+               mv /usr/share/baculum/htdocs/protected/Data/settings.conf \
+               /usr/share/baculum/htdocs/protected/Data/settings.conf.apache
+       # remove debug files if any
+       [ ! -e /usr/share/baculum/htdocs/protected/Data/baculum.dbg ] ||
+               rm /usr/share/baculum/htdocs/protected/Data/baculum*.dbg
+fi
 
 #DEBHELPER#
 
-exit 0
\ No newline at end of file
+exit 0
index ff8e5c42557188956b9b350c9c27c2ae9138b50c..c04eb9631c4e02e7827fb184513ea064840a34e9 100644 (file)
@@ -2,8 +2,16 @@
 
 set -e
 
-rm /usr/share/baculum/htdocs/protected/Data/baculum.users
+if [ "$1" = "remove" ]
+then
+       [ ! -e /usr/share/baculum/htdocs/protected/Data/settings.conf ] ||
+               mv /usr/share/baculum/htdocs/protected/Data/settings.conf \
+               /usr/share/baculum/htdocs/protected/Data/settings.conf.lighttpd
+       # remove debug files if any
+       [ ! -e /usr/share/baculum/htdocs/protected/Data/baculum.dbg ] ||
+               rm /usr/share/baculum/htdocs/protected/Data/baculum*.dbg
+fi
 
 #DEBHELPER#
 
-exit 0
\ No newline at end of file
+exit 0