sys: Warn when vsnames is set but vserver support is disabled in backupninja.conf.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 1 Jan 2009 12:40:42 +0000 (13:40 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 1 Jan 2009 12:40:42 +0000 (13:40 +0100)
handlers/sys.in

index f293840157b323004092ffac8db97309a272ddb7..5f3447b866472ee6b8c74da3416ee19e837d29f0 100755 (executable)
@@ -95,6 +95,11 @@ if [ $vservers_are_available = yes ]; then
    fi
    info "Using vservers '$vsnames'"
    usevserver=yes
+else
+   # Get the config value again, but now without a default value
+   getconf vsnames
+   [ -z "$vsnames" ] || warning 'vservers support disabled in backupninja.conf, vsnames configuration line will be ignored'
+
 fi
 
 ## PACKAGES ##############################