]> git.donarmstrong.com Git - roundcube.git/blobdiff - debian/roundcube.postinst
Handle transition from config files from roundcube to roundcube-core
[roundcube.git] / debian / roundcube.postinst
diff --git a/debian/roundcube.postinst b/debian/roundcube.postinst
new file mode 100644 (file)
index 0000000..99e67a5
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+# Handle old files that are not needed any more
+for OLD in /etc/logrotate.d/roundcube /etc/default/roundcube /etc/cron.daily/roundcube; do
+    [ -f $OLD ] && {
+       if [ ! -s $OLD ]; then
+           rm $OLD
+       else
+           grep -q '^# 75321 DELETE 75321$' $OLD && rm $OLD
+       fi
+    }
+done
+
+#DEBHELPER#
+
+exit 0