From aad8ad57a1545efeda8c2888a5d85c61a7f1cbbf Mon Sep 17 00:00:00 2001 From: rohieb Date: Sat, 13 Sep 2008 16:44:04 +0200 Subject: [PATCH 1/1] moved message to delete the SQL table to debian/postrm --- debian/postrm | 13 +++++++++++++ debian/prerm | 12 ------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 debian/postrm diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..9185142 --- /dev/null +++ b/debian/postrm @@ -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; diff --git a/debian/prerm b/debian/prerm index 56d96db..c37b2f9 100755 --- a/debian/prerm +++ b/debian/prerm @@ -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; -- 2.20.1