contrib/meshwizard: setup mapservers from profile
This commit is contained in:
parent
d5fc0a0cef
commit
2a8c5dbf2f
1 changed files with 9 additions and 0 deletions
|
@ -19,7 +19,16 @@ if [ -n "$(uci -q get meshwizard.community)" ]; then
|
||||||
set_defaults "community_" freifunk.community
|
set_defaults "community_" freifunk.community
|
||||||
uci -q delete meshwizard.community
|
uci -q delete meshwizard.community
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "$profile_homepage" ] && uci set freifunk.community.homepage="$profile_homepage"
|
[ -n "$profile_homepage" ] && uci set freifunk.community.homepage="$profile_homepage"
|
||||||
|
|
||||||
|
[ -n "$profile_mapserver" ] && {
|
||||||
|
uci -q delete freifunk.community.mapserver
|
||||||
|
for m in $profile_mapserver; do
|
||||||
|
uci add_list freifunk.community.mapserver="$m"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
uci_commitverbose "Setup community" freifunk
|
uci_commitverbose "Setup community" freifunk
|
||||||
|
|
||||||
if [ -n "$(uci -q get meshwizard.contact)" ]; then
|
if [ -n "$(uci -q get meshwizard.contact)" ]; then
|
||||||
|
|
Loading…
Reference in a new issue