Permalink
Browse files

Correct local/remote directory references

Both the install script and the installed lipsync script use
"$REMOTE_HOST:REMOTE_DIR $LOCAL_DIR" which results in an rsync error if
different paths are used on the client and server. Correct this.

Signed-off-by: Darren Hart <darren@dvhart.com>
  • Loading branch information...
1 parent 48cf3ad commit a624835a7b71178b7940ebf9d743c4525a5299d2 @dvhart committed Sep 17, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 bin/lipsync
  2. +1 −1 install.sh
View
@@ -45,7 +45,7 @@ fi
# run the rsync command to check server for updated files
###############
#/usr/bin/rsync $@ || err=$?
-rsync -rav --stats --log-file=/home/$USER_NAME/.lipsyncd/lipsyncd.log -e "ssh -l $USER_NAME -p $SSH_PORT" --delete $REMOTE_HOST:$LOCAL_DIR $REMOTE_DIR
+rsync -rav --stats --log-file=/home/$USER_NAME/.lipsyncd/lipsyncd.log -e "ssh -l $USER_NAME -p $SSH_PORT" --delete $REMOTE_HOST:$REMOTE_DIR $LOCAL_DIR
###############
# this writes source -> destination details to lipsyncd.log
View
@@ -195,7 +195,7 @@ deploy(){
initial_sync(){
echo -n "* Doing inital sync with server..."
. /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''
echo "Initial sync `date` Completed" > /home/$username/.lipsyncd/lipsyncd.log
}

1 comment on commit a624835

manually merged via philcryer/lipsync@2596506#install.sh

thanks

Please sign in to comment.