X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/01059e3a2180c313aaba8af5df13018585532e2f..ced06588972f0441b112f77212c50a6007f1eb8e:/debian/prerm?ds=sidebyside diff --git a/debian/prerm b/debian/prerm index c39b7de..56d96db 100755 --- a/debian/prerm +++ b/debian/prerm @@ -2,8 +2,16 @@ psql -c "DELETE FROM log_module WHERE module='Room Reservation Schedule';" chklocale -@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 + 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;