From: rohieb Date: Sat, 13 Sep 2008 14:44:04 +0000 (+0200) Subject: moved message to delete the SQL table to debian/postrm X-Git-Tag: REL_8.09.13~2 X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/commitdiff_plain/aad8ad57a1545efeda8c2888a5d85c61a7f1cbbf?hp=05d6656ed3822ab80a5f3c0eef0072fb349a7008 moved message to delete the SQL table to 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;