Ignore:
Timestamp:
May 19, 2012, 7:45:15 PM (13 years ago)
Author:
rick
Message:

Zorg dat ik kan forcen...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/import_scan_data.sh

    r10817 r10923  
    66
    77BASEROOT=`cd $(dirname $0); pwd -P`
    8 DATAROOT=${1:-"$BASEROOT/scan-data"}
    9 SSH_USER=${2:-"backup"}
     8DATAROOT="$BASEROOT/scan-data"
     9SSH_USER="backup"
    1010MAP_CACHE=${MAP_CACHE:-"/usr/local/var/httpd/cache/maps"}
    1111MANAGE="`dirname $0`/manage.py"
     
    1414
    1515DEBUG=${DEBUG:-"false"}
     16force=false
    1617
    1718new_imports=false
     19
     20if [ "$1" = "-f" ]; then
     21  force=true
     22fi
    1823
    1924debug() {
     
    3237changes_files=`rsync -O --out-format="%n%L" -az -e "ssh -i $SSH_KEY -l $SSH_USER -o StrictHostKeyChecking=no" tyan.wirelessleiden.nl:/usr/local/www/webfolder/scan-data/ $DATAROOT`
    3338
    34 if [ -z "$changes_files" ]; then
     39if ! $force && [ -z "$changes_files" ]; then
    3540  exit 0
    3641fi
Note: See TracChangeset for help on using the changeset viewer.