summaryrefslogtreecommitdiff
path: root/packaging/debian
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-01-31 22:53:05 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-01-31 22:53:05 -0500
commite64c19d0155230be829e0bad23a37bde16c73187 (patch)
tree77899f2d0ed9c6c94bb6015421110e1cb69f84be /packaging/debian
parentb2bf2d17cd6eb5edcb69d51867b7d17e60751986 (diff)
packaging/debian: add some transition stuff to the preinst script
Diffstat (limited to 'packaging/debian')
-rwxr-xr-xpackaging/debian/monkeysphere.preinst12
1 files changed, 12 insertions, 0 deletions
diff --git a/packaging/debian/monkeysphere.preinst b/packaging/debian/monkeysphere.preinst
index 73c4169..fd22f6f 100755
--- a/packaging/debian/monkeysphere.preinst
+++ b/packaging/debian/monkeysphere.preinst
@@ -5,6 +5,18 @@
# Author: Jameson Rollins <jrollins@finestructure.net>
# Copyright 2008-2009
+ETC="/etc/monkeysphere"
+
+# move the old server conf file to be the authentication conf file
+if [ -f "$ETC"/monkeysphere-server.conf -a \
+ ! -f "$ETC"/monkeysphere-authentication.conf ] ; then
+ mv "$ETC"/monkeysphere-server.conf "$ETC"/monkeysphere-authentication.conf
+fi
+
+# remove the old gpg-*.conf files
+rm -f "$ETC"/gpg-host.conf
+rm -f "$ETC"/gpg-authentication.conf
+
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.