summaryrefslogtreecommitdiff
path: root/debian/monkeysphere.preinst
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@phys.columbia.edu>2008-10-11 15:56:18 -0400
committerJameson Graef Rollins <jrollins@phys.columbia.edu>2008-10-11 16:14:31 -0400
commitc76c8c71fa9e3106dcf2431144e58466113af654 (patch)
tree9890090fa5bf0b697ef27afa399d84f15b53b656 /debian/monkeysphere.preinst
parent936daca4a597838563eccc47b3ec415eaca00666 (diff)
fix the *inst scripts to properly handle linking in the gpg.conf files.
Diffstat (limited to 'debian/monkeysphere.preinst')
-rwxr-xr-xdebian/monkeysphere.preinst6
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/monkeysphere.preinst b/debian/monkeysphere.preinst
index bfa6a91..860286b 100755
--- a/debian/monkeysphere.preinst
+++ b/debian/monkeysphere.preinst
@@ -12,7 +12,11 @@ VARLIB="/var/lib/monkeysphere"
# /etc, where they will be linked back into the GNUPGHOMEs later
if [ -f "$VARLIB"/gnupg-host/gpg.conf -a ! -L "$VARLIB"/gnupg-host/gpg.conf ] ; then
mv "$VARLIB"/gnupg-host/gpg.conf "$ETC"/gpg-host.conf
+ chown root:root "$ETC"/gpg-host.conf
+ ln -s "$ETC"/gpg-host.conf "$VARLIB"/gnupg-host/gpg.conf
fi
if [ -f "$VARLIB"/gnupg-authentication/gpg.conf -a ! -L "$VARLIB"/gnupg-authentication/gpg.conf ] ; then
- mv "$VARLIB"/gnupg-authentication/gpg.conf "$ETC"/gnupg-authentication.conf
+ mv "$VARLIB"/gnupg-authentication/gpg.conf "$ETC"/gpg-authentication.conf
+ chown root:root "$ETC"/gpg-authentication.conf
+ ln -s "$ETC"/gpg-authentication.conf "$VARLIB"/gnupg-authentication/gpg.conf
fi