Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Don't exit immediately after setting up keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed Sep 27, 2013
1 parent 3388c59 commit 0805dd4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src-qt4/life-preserver/scripts/setup-ssh-keys.sh
Expand Up @@ -27,7 +27,7 @@ fi
if [ ! -e ".ssh/id_rsa.pub" ]
then
echo "ERROR: Failed creating .ssh/id_rsa.pub"
sleep 5
read tmp
exit 150
fi

Expand All @@ -38,8 +38,9 @@ echo $PUBKEY | ssh -p $SSHPORT $SSHUSER@$SSHHOST 'mkdir .ssh ; chmod 700 .ssh ;

echo $PUBKEY | ssh -p $SSHPORT $SSHUSER@$SSHHOST 'mkdir .ssh ; chmod 700 .ssh ; tee -a .ssh/authorized_keys2 ; chmod 644 .ssh/authorized_keys2'


if [ "$?" != "0" ]
then
touch /tmp/.failedPreserver-${SSHUSER}
if [ "$?" != "0" ]; then
touch /tmp/.failedPreserver-${SSHUSER}
fi

echo "Press ENTER to continue"
read tmp

0 comments on commit 0805dd4

Please sign in to comment.