summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Beaupré2012-02-07 19:26:07 -0500
committerAntoine Beaupré2012-02-07 19:26:07 -0500
commita63c1deb5b767786c1c0b48dd7db236a36e3c787 (patch)
tree7f3efec5ba8570c4e144c192b5591307f8b287f0
parent481a3eed25939c508911cb75842edfa9e3a5d7ba (diff)
fix missing bits in postrmdev-webpack1x
-rw-r--r--debian/aegir-cluster-slave.postrm8
1 files changed, 7 insertions, 1 deletions
diff --git a/debian/aegir-cluster-slave.postrm b/debian/aegir-cluster-slave.postrm
index d7eb20e..78efa5e 100644
--- a/debian/aegir-cluster-slave.postrm
+++ b/debian/aegir-cluster-slave.postrm
@@ -18,6 +18,10 @@ set -e
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
if [ "$DPKG_DEBUG" = "developer" ] ; then
set -x
fi
@@ -36,9 +40,11 @@ case "$1" in
ucf --purge /etc/sudoers.d/aegir
rm -f /etc/sudoers.d/aegir
+ rm -f /var/aegir/config/apache.conf
+
db_get "aegir/master_ssh_key"
SSH_KEY="$RET"
- sed -i.dpkg-orig "s#$SSH_KEY##" $VARLIB/.ssh/authorized_keys
+ sed -i.dpkg-orig "s#$SSH_KEY##" /var/aegir/.ssh/authorized_keys
sed -i.dpkg-orig '/\/var\/aegir\/platforms/d' /etc/fstab
;;
remove|upgrade|abort-install|disappear)