Bug 26265: (QA follow-up) Remove g option from regex, add few dirs
[koha-equinox.git] / debian / koha.postrm
index 60ba704..3992985 100644 (file)
@@ -10,12 +10,14 @@ if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
     dbc_go koha $@
 fi
 
-#if [ "$1" = "purge" ]; then
-#      rm -f /etc/db-test-mysql/debian-db.php
-#      if which ucf >/dev/null 2>&1; then
-#              ucf --purge /etc/db-test-mysql/debian-db.php
-#              ucfr --purge db-test-mysql /etc/db-test-mysql/debian-db.php
-#      fi
-#fi
+if [ "$1" = "purge" ]; then
+    configfile="/etc/koha/koha-conf.xml"
+    rm -f "$configfile"
+    if which ucf >/dev/null 2>&1; then
+        ucf --purge "$configfile"
+    fi
+
+    rm -rf /var/log/koha
+fi
 
 #DEBHELPER#