X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=debian%2Fmonkeysphere.preinst;h=860286b069de5db0927b9bd527d80a1404bd2a9a;hb=e36adf0656188ddb03f4302f3dc9f9a36b9884c0;hp=bfa6a9168f1dd4068011ab62cdb4b5a40b13b78d;hpb=936daca4a597838563eccc47b3ec415eaca00666;p=monkeysphere.git 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