debian/cubicweb-ctl.postrm
changeset 10559 5821ae654dfd
parent 0 b97547f5f1fa
child 11832 e8be49ecb522
--- a/debian/cubicweb-ctl.postrm	Tue Jul 28 18:06:46 2015 +0200
+++ b/debian/cubicweb-ctl.postrm	Tue Jul 28 18:57:21 2015 +0200
@@ -1,8 +1,15 @@
 #!/bin/sh -e
-if [ "$1" = "purge" ] ; then
+
+if [ "$1" = "remove" ]; then
         update-rc.d cubicweb remove >/dev/null
 fi
  
+if [ "$1" = "purge" ] ; then
+        rm -rf /etc/cubicweb.d/
+        rm -rf /var/log/cubicweb/
+        rm -rf /var/lib/cubicweb/
+fi
+
 #DEBHELPER#
  
 exit 0