Changeset 1172
- Timestamp:
- Jun 2, 2014, 3:44:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dasscm/trunk/usr/bin/dasscm_remote_update.sh
r1167 r1172 22 22 } 23 23 24 OPTIONS= ${DASSCM_RSYNC_OPTIONS:-""}24 OPTIONS="${DASSCM_RSYNC_OPTIONS:-}" 25 25 REMOTE_USER=${DASSCM_REMOTE_USER:-"root"} 26 26 … … 44 44 svn ls -R > $FILELIST 45 45 SERVER=`basename "$PWD"` 46 rsync -av --checksum --existing --files-from $FILELIST $OPTIONS $REMOTE_USER@$SERVER:/. . || (echo "FAILED to transfer dasscm files. Failed to access server $SERVER via ssh/rsync?"; usage) 46 RESULT=1 47 if [ "$OPTIONS" ]; then 48 rsync -av --checksum --existing --files-from $FILELIST "$OPTIONS" $REMOTE_USER@$SERVER:/. . 49 RESULT=$? 50 else 51 rsync -av --checksum --existing --files-from $FILELIST $REMOTE_USER@$SERVER:/. . 52 RESULT=$? 53 fi 54 if [ "$RESULT" -gt 0 ]; then 55 echo "FAILED to transfer dasscm files. Failed to access server $SERVER via ssh/rsync?" 56 usage 57 fi 47 58 rm $FILELIST 48 59 echo "updated file must be commited manually"
Note:
See TracChangeset
for help on using the changeset viewer.