diff options
Diffstat (limited to 'mail/turba/pkg-deinstall')
-rw-r--r-- | mail/turba/pkg-deinstall | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/turba/pkg-deinstall b/mail/turba/pkg-deinstall new file mode 100644 index 000000000000..da0aafe5b418 --- /dev/null +++ b/mail/turba/pkg-deinstall @@ -0,0 +1,12 @@ +#!/bin/sh +# Try to restore httpd.conf when deinstalling Turba + +if [ x$2 != xDEINSTALL ]; then + exit +fi + +if [ -f ${PKG_PREFIX}/etc/apache/httpd.conf.beforeTurba ] ; then + echo "Restoring httpd.conf..." + cp ${PKG_PREFIX}/etc/apache/httpd.conf ${PKG_PREFIX}/etc/apache/httpd.conf.deinstTurba + mv ${PKG_PREFIX}/etc/apache/httpd.conf.beforeTurba ${PKG_PREFIX}/etc/apache/httpd.conf +fi |