zerotier: show message when section disabled

Signed-off-by: Moritz Warning <moritzwarning@web.de>
This commit is contained in:
Moritz Warning 2018-04-12 17:48:32 +02:00
parent a70f13dcba
commit 279967df99
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@ start_instance() {
local port secret config_path
local ARGS=""
section_enabled "$cfg" || return 1
if ! section_enabled "$cfg"; then
echo "disabled in config"
return 1
fi
config_get config_path $cfg 'config_path'
config_get_bool port $cfg 'port'