From 2a8c5dbf2f584567d867f5c558087a12bfc57c20 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Thu, 28 Feb 2013 19:53:34 +0000 Subject: contrib/meshwizard: setup mapservers from profile --- .../files/usr/bin/meshwizard/helpers/initial_config.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'contrib/package/meshwizard/files/usr/bin') diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh index a465935fcd..c1e55224eb 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh @@ -19,7 +19,16 @@ if [ -n "$(uci -q get meshwizard.community)" ]; then set_defaults "community_" freifunk.community uci -q delete meshwizard.community fi + [ -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 if [ -n "$(uci -q get meshwizard.contact)" ]; then -- cgit v1.2.3