Ignore:
Timestamp:
Nov 12, 2013, 1:53:58 PM (11 years ago)
Author:
joergs
Message:

bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dasscm/trunk/usr/bin/dasscm_remote_update.sh

    r882 r1163  
    99# Use only, if a local dasscm installation is not possbile!
    1010
     11set -o errexit -o nounset
     12
    1113usage()
    1214{
     
    1820}
    1921
    20 #DRYRUN="--dry-run"
    21 # without one-file-system, a lot of warings are produced for /proc etc.
    22 ONEFILESYSTEM="--one-file-system"
    23 
    24 OPTIONS="$DRYRUN $ONEFILESYSTEM"
    25 
    26 REMOTE_USER="root"
     22OPTIONS=${DASSCM_RSYNC_OPTIONS:-""}
     23REMOTE_USER=${DASSCM_REMOTE_USER:-"root"}
    2724
    2825SERVER=$1
     
    4239#   If you want to add more files,
    4340#   create the file in the repository and re-run this script
    44 svn up $SERVER || (echo "failed to update repository $SERVER"; usage)
    45 rsync -av --existing $OPTIONS $REMOTE_USER@$SERVER:/. . || (echo "failed to access server $SERVER via ssh/rsync"; usage)
     41cd $SERVER
     42svn up || (echo "failed to update repository $SERVER"; usage)
     43FILELIST=`mktemp`
     44find > $FILELIST
     45rsync -av --existing --files-from $FILELIST $OPTIONS $REMOTE_USER@$SERVER:/. . || (echo "FAILED to transfer dasscm files. Failed to access server $SERVER via ssh/rsync?"; usage)
     46rm $FILELIST
    4647echo "updated file must be commited manually"
Note: See TracChangeset for help on using the changeset viewer.