moved message to delete the SQL table to debian/postrm
authorrohieb <devnull@localhost>
Sat, 13 Sep 2008 14:44:04 +0000 (16:44 +0200)
committerrohieb <devnull@localhost>
Sat, 13 Sep 2008 14:44:04 +0000 (16:44 +0200)
debian/postrm [new file with mode: 0644]
debian/prerm

diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..9185142
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+psql -c "DELETE FROM log_module WHERE module='Room Reservation Schedule';"
+chklocale
+
+#DEBHELPER#
+
+if [ "$1" = "purge" ]; then
+  echo
+  echo If you do not need the SQL tables anymore, remove them by running
+  echo '  psql -c "DROP TABLE mod_roomreservation_bookings;"'
+  echo After that, all bookings are unrecoverably deleted!
+  echo
+fi;
index 56d96db..c37b2f9 100755 (executable)
@@ -1,17 +1,5 @@
 #!/bin/sh
-psql -c "DELETE FROM log_module WHERE module='Room Reservation Schedule';"
-chklocale
-
 if [ "$1" = "purge" ]; then
   rm -f /usr/share/iserv/www/inc/mod_room-reservation/config.inc
 fi;
-
 #DEBHELPER#
-
-if [ "$1" = "purge" ]; then
-  echo
-  echo If you do not need the SQL tables anymore, remove them by running
-  echo '  psql -c "DROP TABLE mod_roomreservation_bookings;"'
-  echo After that, all bookings are unrecoverably deleted!
-  echo
-fi;
This page took 0.02684 seconds and 4 git commands to generate.