summaryrefslogtreecommitdiff
path: root/pinyconfigs/debian/pinyconfigs.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'pinyconfigs/debian/pinyconfigs.preinst')
-rwxr-xr-xpinyconfigs/debian/pinyconfigs.preinst18
1 files changed, 18 insertions, 0 deletions
diff --git a/pinyconfigs/debian/pinyconfigs.preinst b/pinyconfigs/debian/pinyconfigs.preinst
new file mode 100755
index 0000000..e09313a
--- /dev/null
+++ b/pinyconfigs/debian/pinyconfigs.preinst
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+
+ install)
+
+ dpkg-divert --divert /etc/apache2/envvars.default --package pinyconfigs --rename /etc/apache2/envvars
+ dpkg-divert --divert /etc/cgitrc.default --package pinyconfigs --rename /etc/cgitrc
+ dpkg-divert --divert /etc/sv/git-daemon/run.default --package pinyconfigs --rename /etc/sv/git-daemon/run
+
+ ;;
+
+ *)
+ ;;
+
+esac