Fixed small bug that prevented nodewatcher from updating to the right version

This commit is contained in:
floh1111 2011-05-26 19:12:13 +00:00
parent 9728ffe13f
commit a646a00351
4 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
config 'script'
option 'version' '19'
option 'version' '20'
option 'error_level' '0'
option 'logfile' '/var/log/nodewatcher.log'

View File

@ -120,7 +120,7 @@ update() {
if [ $error_level -gt "1" ]; then
echo "`date`: Eine neue Version ist Verfügbar, script wird geupdated" >> $logfile
fi
wget -q -O $SCRIPT_DIR/nodewatcher.sh http://$netmon_api/api_nodewatcher.php?section=update&nodewatcher_version=$SCRIPT_VERSION
wget -q -O $SCRIPT_DIR/nodewatcher.sh "http://$netmon_api/api_nodewatcher.php?section=update&nodewatcher_version=$SCRIPT_VERSION"
uci set nodewatcher.@script[0].version=$version
uci commit
else

View File

@ -1,5 +1,5 @@
config 'script'
option 'version' '19'
option 'version' '20'
option 'error_level' '0'
option 'logfile' '/var/log/nodewatcher.log'

View File

@ -1,5 +1,5 @@
config 'script'
option 'version' '19'
option 'version' '20'
option 'error_level' '0'
option 'logfile' '/var/log/nodewatcher.log'