summaryrefslogtreecommitdiff
path: root/debian/zsh-beta.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/zsh-beta.preinst')
-rw-r--r--debian/zsh-beta.preinst22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/zsh-beta.preinst b/debian/zsh-beta.preinst
new file mode 100644
index 000000000..a0d153c13
--- /dev/null
+++ b/debian/zsh-beta.preinst
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ (upgrade|install)
+ :
+ ;;
+ (abort-upgrade|abort-remove|abort-deconfigure)
+ exit 0
+ ;;
+ (*)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 0
+ ;;
+esac
+
+for conffile in zlogin zlogout zprofile zshenv zshrc; do
+ dpkg-maintscript-helper rm_conffile /etc/zsh-beta/$conffile 5 -- "$@"
+done
+
+#DEBHELPER#