diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-11-07 00:09:53 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-11-07 00:09:53 -0700 |
commit | 82f9c9f1fa19c59e296570412656c66607d46f48 (patch) | |
tree | 37ddd246883521548513faebd94688b0db70e24c /pinyconfigs/debian/pinyconfigs.postrm | |
parent | 94fc7a992c7f3e163b491ce8b248f3c1b4ca2702 (diff) | |
download | piny-code-82f9c9f1fa19c59e296570412656c66607d46f48.tar.gz piny-code-82f9c9f1fa19c59e296570412656c66607d46f48.zip |
pinyconfigs
Adding a package that does all the config file magic to get a piny instance running.
Signed-off-by: Julian Blake Kongslie <jblake@omgwallhack.org>
Diffstat (limited to 'pinyconfigs/debian/pinyconfigs.postrm')
-rwxr-xr-x | pinyconfigs/debian/pinyconfigs.postrm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pinyconfigs/debian/pinyconfigs.postrm b/pinyconfigs/debian/pinyconfigs.postrm new file mode 100755 index 0000000..ac69cc8 --- /dev/null +++ b/pinyconfigs/debian/pinyconfigs.postrm @@ -0,0 +1,34 @@ +#!/bin/sh + +set -e + +case "$1" in + + remove) + + dpkg-divert --divert /etc/apache2/envvars.default --package pinyconfigs --remove /etc/apache2/envvars + dpkg-divert --divert /etc/cgitrc.default --package pinyconfigs --remove /etc/cgitrc + dpkg-divert --divert /etc/sv/git-daemon/run.default --package pinyconfigs --remove /etc/sv/git-daemon/run + + ;; + + purge) + + if [ -e /etc/apache2/envvars.default ]; then + mv /etc/apache2/envvars.default /etc/apache2/envvars + fi + + if [ -e /etc/cgitrc.default ]; then + mv /etc/cgitrc.default /etc/cgitrc + fi + + if [ -e /etc/sv/git-daemon/run.default ]; then + mv /etc/sv/git-daemon/run.default /etc/sv/git-daemon/run + fi + + ;; + + *) + ;; + +esac |