Changeset 10923 for src/django_gheat/import_scan_data.sh
- Timestamp:
- May 19, 2012, 7:45:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/import_scan_data.sh
r10817 r10923 6 6 7 7 BASEROOT=`cd $(dirname $0); pwd -P` 8 DATAROOT= ${1:-"$BASEROOT/scan-data"}9 SSH_USER= ${2:-"backup"}8 DATAROOT="$BASEROOT/scan-data" 9 SSH_USER="backup" 10 10 MAP_CACHE=${MAP_CACHE:-"/usr/local/var/httpd/cache/maps"} 11 11 MANAGE="`dirname $0`/manage.py" … … 14 14 15 15 DEBUG=${DEBUG:-"false"} 16 force=false 16 17 17 18 new_imports=false 19 20 if [ "$1" = "-f" ]; then 21 force=true 22 fi 18 23 19 24 debug() { … … 32 37 changes_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` 33 38 34 if [ -z "$changes_files" ]; then39 if ! $force && [ -z "$changes_files" ]; then 35 40 exit 0 36 41 fi
Note:
See TracChangeset
for help on using the changeset viewer.