just run iservchk in debian/postinst, it is easier
authorRoland Hieber <devnull@localhost>
Sun, 27 Dec 2009 07:07:21 +0000 (08:07 +0100)
committerRoland Hieber <devnull@localhost>
Sun, 27 Dec 2009 07:07:21 +0000 (08:07 +0100)
debian/postinst
debian/postrm

index ec6a94a..9381cba 100755 (executable)
@@ -2,9 +2,5 @@
 touch /usr/share/iserv/www/inc/mod_room-reservation/config.inc
 chmod g+w /usr/share/iserv/www/inc/mod_room-reservation/config.inc
 chgrp www-data /usr/share/iserv/www/inc/mod_room-reservation/config.inc
-export PGDATABASE=iserv
-export PGUSER=postgres
-chkdb -r
-chkpriv
-chklocale
+iservchk -a
 #DEBHELPER#
index 9185142..b98033e 100644 (file)
@@ -6,8 +6,10 @@ chklocale
 
 if [ "$1" = "purge" ]; then
   echo
-  echo If you do not need the SQL tables anymore, remove them by running
+  echo iserv-mod-roomreservation was removed. If you do not need the data in
+  echo the SQL tables anymore, you can remove them by running:
   echo '  psql -c "DROP TABLE mod_roomreservation_bookings;"'
-  echo After that, all bookings are unrecoverably deleted!
+  echo '  psql -c "DROP TABLE mod_roomreservation_roomswhitelist;"'
+  echo After that, all bookings and settings are unrecoverably deleted!
   echo
 fi;
This page took 0.02401 seconds and 4 git commands to generate.