[slbackup-commit] CVS update: slbackup-php/debian config postinst
rules templates
pwinnertz-guest at alioth.debian.org
pwinnertz-guest at alioth.debian.org
Wed Apr 18 20:11:04 UTC 2007
User: pwinnertz-guest
Date: 07/04/18 20:11:04
Modified: debian Tag: debian_branch_0_1 postinst rules
Added: debian Tag: debian_branch_0_1 config templates
Log:
Added debconf things
Revision Changes Path
No revision
No revision
1.4.2.1 +15 -7 slbackup-php/debian/postinst
Index: postinst
===================================================================
RCS file: /cvsroot/slbackup/slbackup-php/debian/postinst,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -r1.4 -r1.4.2.1
--- postinst 17 Apr 2007 20:40:43 -0000 1.4
+++ postinst 18 Apr 2007 20:11:04 -0000 1.4.2.1
@@ -2,13 +2,19 @@
set -e
-if [ -x /usr/sbin/a2enmod ] && [ -L /etc/apache2/mods-enabled/ssl.conf ]; then
- /usr/sbin/a2enmod rewrite > /dev/null
- if [ -x /usr/sbin/invoke-rc.d ] ; then
- /usr/sbin/invoke-rc.d apache2 force-reload || :
- else
- [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 force-reload || :
- fi
+. /usr/share/debconf/confmodule
+
+db_get lwat/templates || true
+
+if [ $RET ]; then
+ if [ -x /usr/sbin/a2enmod ] && [ -L /etc/apache2/mods-enabled/ssl.conf ]; then
+ /usr/sbin/a2enmod rewrite > /dev/null
+ if [ -x /usr/sbin/invoke-rc.d ] ; then
+ /usr/sbin/invoke-rc.d apache2 force-reload || :
+ else
+ [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 force-reload || :
+ fi
+ fi
fi
mkdir -p /var/spool/slbackup-php
@@ -17,4 +23,6 @@
chown www-data:www-data /var/spool/slbackup-php/
fi
+db_stop
+
#DEBHELPER#
1.5.2.1 +1 -1 slbackup-php/debian/rules
Index: rules
===================================================================
RCS file: /cvsroot/slbackup/slbackup-php/debian/rules,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -u -r1.5 -r1.5.2.1
--- rules 18 Apr 2007 06:50:38 -0000 1.5
+++ rules 18 Apr 2007 20:11:04 -0000 1.5.2.1
@@ -15,7 +15,7 @@
rm -f build-stamp
-$(MAKE) clean
dh_clean
- #debconf-updatepo
+ debconf-updatepo
install: build
dh_testdir
No revision
No revision
1.1.2.1 +9 -0 slbackup-php/debian/Attic/config
1.1.2.1 +10 -0 slbackup-php/debian/Attic/templates
More information about the slbackup-commit
mailing list