wrote a first pass at explaining the concept of identity certifiers
[monkeysphere.git] / packaging / debian / monkeysphere.preinst
1 #!/bin/sh -e
2
3 # preinst script for monkeysphere
4
5 # Author: Jameson Rollins <jrollins@finestructure.net>
6 # Copyright 2008-2009
7
8 ETC="/etc/monkeysphere"
9
10 # move the old server conf file to be the authentication conf file
11 if [ -f "$ETC"/monkeysphere-server.conf -a \
12     ! -f "$ETC"/monkeysphere-authentication.conf ] ; then
13     mv "$ETC"/monkeysphere-server.conf "$ETC"/monkeysphere-authentication.conf
14 fi
15
16 # remove the old gpg-*.conf files
17 rm -f "$ETC"/gpg-host.conf
18 rm -f "$ETC"/gpg-authentication.conf
19
20 # dh_installdeb will replace this with shell code automatically
21 # generated by other debhelper scripts.
22
23 #DEBHELPER#
24
25 exit 0