forked from freifunk-franken/firmware
Fixed small bug that prevented nodewatcher from updating to the right version
This commit is contained in:
parent
1f9af91e60
commit
e8b04ad8ba
|
@ -1,5 +1,5 @@
|
|||
config 'script'
|
||||
option 'version' '19'
|
||||
option 'version' '20'
|
||||
option 'error_level' '0'
|
||||
option 'logfile' '/var/log/nodewatcher.log'
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
config 'script'
|
||||
option 'version' '19'
|
||||
option 'version' '20'
|
||||
option 'error_level' '0'
|
||||
option 'logfile' '/var/log/nodewatcher.log'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
config 'script'
|
||||
option 'version' '19'
|
||||
option 'version' '20'
|
||||
option 'error_level' '0'
|
||||
option 'logfile' '/var/log/nodewatcher.log'
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user