aboutsummaryrefslogtreecommitdiff
path: root/buildtools/debian-skeleton/rpki-ca.prerm
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2013-05-02 06:14:47 +0000
committerRob Austein <sra@hactrn.net>2013-05-02 06:14:47 +0000
commit7e968aea942beeb2741c70de235c68979c1f907b (patch)
treeaaf68483d01b19fe99d6e99f5c4a54b545f5551c /buildtools/debian-skeleton/rpki-ca.prerm
parent575c98b4f5dbda958134c0f5d30a8e9b44eb7c8e (diff)
Whack Ubuntu Apache configuration to use rpkigui-apache-conf-gen.
svn path=/trunk/; revision=5315
Diffstat (limited to 'buildtools/debian-skeleton/rpki-ca.prerm')
-rw-r--r--buildtools/debian-skeleton/rpki-ca.prerm11
1 files changed, 10 insertions, 1 deletions
diff --git a/buildtools/debian-skeleton/rpki-ca.prerm b/buildtools/debian-skeleton/rpki-ca.prerm
index bb28512f..b6033cf2 100644
--- a/buildtools/debian-skeleton/rpki-ca.prerm
+++ b/buildtools/debian-skeleton/rpki-ca.prerm
@@ -44,7 +44,12 @@ case "$1" in
rm -f /etc/cron.daily/rpkigui-check-expired
rm -f /etc/cron.d/rpki-update-bpki
- # Clean up what we did to Apache.
+ # Clean up what we did to Apache. Modern version of this is
+ # just invocation of a Python script, but for now we also
+ # retain code needed to clean up nasty mess we created in the
+ # past, to avoid breaking old installations on upgrade.
+
+ # Remove the old stuff first.
f=/etc/apache2/sites-available/default-ssl
awk < $f > ${f}.tmp '
@@ -68,6 +73,10 @@ case "$1" in
# Not sure whether we should do "service apache2 reload"
# here, one could make a case either way. Skip for now.
+ # Now remove the new stuff.
+
+ /usr/lib/rpki/rpkigui-apache-conf-gen --debian --remove --verbose
+
;;
upgrade|deconfigure)