Monkeysphere ids

This commit is contained in:
Bob Mottram 2016-04-29 17:00:30 +01:00
parent af1c64912d
commit afb9db2d39
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
2 changed files with 9031 additions and 9022 deletions

View File

@ -5370,6 +5370,10 @@ function install_monkeysphere {
fi
apt-get -y install monkeysphere msva-perl
#su -c "monkeysphere gen-subkey $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
mkdir /home/$MY_USERNAME/.monkeysphere
chmod 755 /home/$MY_USERNAME/.monkeysphere
echo "$MY_USERNAME <${MY_EMAIL_ADDRESS}>" > /home/$MY_USERNAME/.monkeysphere/authorized_user_ids
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.monkeysphere
echo 'install_monkeysphere' >> $COMPLETION_FILE
}

View File

@ -137,9 +137,14 @@ if [ ! -f $MY_GPG_PUBLIC_KEY ]; then
userdel -r $MY_USERNAME
exit 7
fi
# add a monkeysphere subkey
su -c "monkeysphere gen-subkey $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
# add authorized GPG email address
mkdir /home/$MY_USERNAME/.monkeysphere
chmod 755 /home/$MY_USERNAME/.monkeysphere
echo "$MY_USERNAME <${$MY_USERNAME@$HOSTNAME}>" > /home/$MY_USERNAME/.monkeysphere/authorized_user_ids
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.monkeysphere
if [ -f /home/$MY_USERNAME/.muttrc ]; then
# encrypt outgoing mail to the "sent" folder