#!/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