Skip to content

Commit

Permalink
reversed LOCAL and REMOTE dir on line 199, my testing failed to catch…
Browse files Browse the repository at this point in the history
… this because I always used the same dir name for local and remote (thanks Nick for the catch and debug)
  • Loading branch information
philcryer committed Feb 16, 2012
1 parent e01996b commit 0a3516a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ 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':'$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''
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 0a3516a

Please sign in to comment.