Skip to content

Commit

Permalink
merged via
Browse files Browse the repository at this point in the history
  • Loading branch information
philcryer committed Apr 24, 2012
1 parent 38095f5 commit 2596506
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions install.sh
Expand Up @@ -104,7 +104,7 @@ ssh_keygen(){
exit 1 exit 1
fi fi
else else
su ${username} -c "cat /home/${username}/.ssh/id_rsa.pub | ssh $remote_server -p ${port} 'cat - > /home/${username}/.ssh/id_dsa.pub'" >> /dev/null su ${username} -c "cat /home/${username}/.ssh/id_dsa.pub | ssh $remote_server -p ${port} 'cat - >> /home/${username}/.ssh/authorized_keys'" >> /dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
X=0 #echo "done" X=0 #echo "done"
else else
Expand Down Expand Up @@ -198,7 +198,6 @@ deploy(){
initial_sync(){ initial_sync(){
echo -n "* Doing inital sync with server..." echo -n "* Doing inital sync with server..."
. /etc/lipsyncd . /etc/lipsyncd
#su $USER_NAME -c 'rsync -rav --stats --log-file=/home/'$USER_NAME'/.lipsyncd/lipsyncd.log -e "ssh -l '$USER_NAME' -p '$SSH_PORT'" '$REMOTE_HOST':'$LOCAL_DIR' '$REMOTE_DIR''
su $USER_NAME -c 'rsync -rav --stats --log-file=/home/'$USER_NAME'/.lipsyncd/lipsyncd.log -e "ssh -l '$USER_NAME' -p '$SSH_PORT'" '$REMOTE_HOST':'$REMOTE_DIR' '$LOCAL_DIR'' su $USER_NAME -c 'rsync -rav --stats --log-file=/home/'$USER_NAME'/.lipsyncd/lipsyncd.log -e "ssh -l '$USER_NAME' -p '$SSH_PORT'" '$REMOTE_HOST':'$REMOTE_DIR' '$LOCAL_DIR''
echo "Initial sync `date` Completed" > /home/$username/.lipsyncd/lipsyncd.log echo "Initial sync `date` Completed" > /home/$username/.lipsyncd/lipsyncd.log
} }
Expand Down

0 comments on commit 2596506

Please sign in to comment.