Stop creating 'config alerts' on every reboot. (#172)

Co-authored-by: Tim Wilkinson <tim@aredn-build.home>
This commit is contained in:
Tim Wilkinson 2021-11-11 10:08:49 -08:00 committed by GitHub
parent 2c331fdd6f
commit f1b949134d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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