mirror of https://github.com/aredn/aredn.git
Stop creating 'config alerts' on every reboot. (#172)
Co-authored-by: Tim Wilkinson <tim@aredn-build.home>
This commit is contained in:
parent
2c331fdd6f
commit
f1b949134d
|
@ -95,9 +95,7 @@ boot() {
|
|||
shift
|
||||
done
|
||||
|
||||
# set local alerts if available
|
||||
local alertslocalpath=$(uci -q get aredn.@alerts[0].localpath)
|
||||
if [ -z "$alertslocalpath" ]; then
|
||||
if [ -z "$(uci -q get aredn.@alerts[0])" ]; then
|
||||
uci -q add aredn alerts
|
||||
uci -q commit aredn
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue