summaryrefslogtreecommitdiff
path: root/packaging/debian/monkeysphere.preinst
blob: fd22f6faca5e5ed685ca611eecd3abe3f2c93746 (plain)
  1. #!/bin/sh -e
  2. # preinst script for monkeysphere
  3. # Author: Jameson Rollins <jrollins@finestructure.net>
  4. # Copyright 2008-2009
  5. ETC="/etc/monkeysphere"
  6. # move the old server conf file to be the authentication conf file
  7. if [ -f "$ETC"/monkeysphere-server.conf -a \
  8. ! -f "$ETC"/monkeysphere-authentication.conf ] ; then
  9. mv "$ETC"/monkeysphere-server.conf "$ETC"/monkeysphere-authentication.conf
  10. fi
  11. # remove the old gpg-*.conf files
  12. rm -f "$ETC"/gpg-host.conf
  13. rm -f "$ETC"/gpg-authentication.conf
  14. # dh_installdeb will replace this with shell code automatically
  15. # generated by other debhelper scripts.
  16. #DEBHELPER#
  17. exit 0