From 8a3ac6bbadc2de0a10edbab38db1013e8e9c9d50 Mon Sep 17 00:00:00 2001 From: rohieb Date: Wed, 23 Jul 2008 05:44:28 +0200 Subject: [PATCH] debian/prerm removes config file and only echoes the SQL deletion notice when purged --- debian/prerm | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/debian/prerm b/debian/prerm index da9ebee..56d96db 100755 --- a/debian/prerm +++ b/debian/prerm @@ -2,10 +2,16 @@ 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# -@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 +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