Monkeysphere ids
This commit is contained in:
parent
af1c64912d
commit
afb9db2d39
|
@ -5370,6 +5370,10 @@ function install_monkeysphere {
|
||||||
fi
|
fi
|
||||||
apt-get -y install monkeysphere msva-perl
|
apt-get -y install monkeysphere msva-perl
|
||||||
#su -c "monkeysphere gen-subkey $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
|
#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
|
echo 'install_monkeysphere' >> $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,9 +137,14 @@ if [ ! -f $MY_GPG_PUBLIC_KEY ]; then
|
||||||
userdel -r $MY_USERNAME
|
userdel -r $MY_USERNAME
|
||||||
exit 7
|
exit 7
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# add a monkeysphere subkey
|
# add a monkeysphere subkey
|
||||||
su -c "monkeysphere gen-subkey $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
|
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
|
if [ -f /home/$MY_USERNAME/.muttrc ]; then
|
||||||
# encrypt outgoing mail to the "sent" folder
|
# encrypt outgoing mail to the "sent" folder
|
||||||
|
|
Loading…
Reference in New Issue