Changeset 9630
- Timestamp:
- Aug 30, 2011, 6:59:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/import_scan_data.sh
r9623 r9630 6 6 MAP_CACHE=${MAP_CACHE:-"/usr/local/var/httpd/cache/maps"} 7 7 MANAGE="`dirname $0`/manage.py" 8 SSH_USER= backup8 SSH_USER=${SSH_USER:-$USER} 9 9 SSH_KEY="`dirname $0`/id_rsa" 10 10 export PYTHON_EGG_CACHE=/tmp/ 11 11 12 DATAROOT_CHOICES="`pwd $0`/scan-data /usr/local/scan-data" 13 if [ "$1" ]; then 14 DATAROOT=$1 15 else 16 for D in $DATAROOT_CHOICES; do 17 if [ -d $D ]; then 18 DATAROOT=$D 19 fi 20 done 21 fi 22 echo "# DATAROOT: $DATAROOT" 23 echo "# SSH_USER: $SSH_USER" 24 12 25 echo "# rsync webfolder" 13 rsync -e "ssh -i $SSH_KEY -l $SSH_USER -o StrictHostKeyChecking=no" -az tyan.wirelessleiden.nl:/usr/local/www/webfolder/scan-data/ $DATAROOT 26 if [ -r "$SSH_KEY" ]; then 27 SSH_KEY_OPT='-i $SSH_KEY' 28 else 29 echo "# warning automatic ssh key $SSH_KEY not readable" 30 SSH_KEY_OPT='' 31 fi 32 rsync -az -e "ssh $SSH_KEY_OPT -l $SSH_USER -o StrictHostKeyChecking=no" tyan.wirelessleiden.nl:/usr/local/www/webfolder/scan-data/ $DATAROOT 14 33 15 34 … … 22 41 #Kismet netxml Imports 23 42 FILES="`find $DATAROOT -name '*netxml*' | sort`" 24 [ -n "$FILES" ] && $MANAGE import_ common$ARGS $FILES43 [ -n "$FILES" ] && $MANAGE import_datafile $ARGS $FILES 25 44 26 45 # Import all measure data
Note:
See TracChangeset
for help on using the changeset viewer.