Restore monkeysphere users
This commit is contained in:
parent
1619659805
commit
191b624871
|
@ -5375,7 +5375,8 @@ function install_monkeysphere {
|
|||
echo "$MY_USERNAME <${MY_EMAIL_ADDRESS}>" > /home/$MY_USERNAME/.monkeysphere/authorized_user_ids
|
||||
chmod 644 /home/$MY_USERNAME/.monkeysphere/authorized_user_ids
|
||||
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.monkeysphere
|
||||
|
||||
monkeysphere-authentication update-users
|
||||
|
||||
echo 'install_monkeysphere' >> $COMPLETION_FILE
|
||||
}
|
||||
|
||||
|
|
|
@ -146,6 +146,7 @@ chmod 755 /home/$MY_USERNAME/.monkeysphere
|
|||
echo "$MY_USERNAME <${$MY_USERNAME@$HOSTNAME}>" > /home/$MY_USERNAME/.monkeysphere/authorized_user_ids
|
||||
chmod 644 /home/$MY_USERNAME/.monkeysphere/authorized_user_ids
|
||||
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.monkeysphere
|
||||
monkeysphere-authentication update-users
|
||||
|
||||
if [ -f /home/$MY_USERNAME/.muttrc ]; then
|
||||
# encrypt outgoing mail to the "sent" folder
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -501,7 +501,7 @@ function restore_user_monkeysphere {
|
|||
if [ ! -d /home/$USERNAME ]; then
|
||||
${PROJECT_NAME}-adduser $USERNAME
|
||||
fi
|
||||
echo $"Restoring monkeysphere files for $USERNAME"
|
||||
echo $"Restoring monkeysphere ids for $USERNAME"
|
||||
restore_directory_from_friend /root/tempmonkeysphere monkeysphere/$USERNAME
|
||||
cp -r /root/tempmonkeysphere/home/$USERNAME/.monkeysphere /home/$USERNAME/
|
||||
if [ ! "$?" = "0" ]; then
|
||||
|
@ -511,6 +511,7 @@ function restore_user_monkeysphere {
|
|||
rm -rf /root/tempmonkeysphere
|
||||
fi
|
||||
fi
|
||||
monkeysphere-authentication update-users
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue