From: Matthijs Kooijman Date: Thu, 1 Jan 2009 12:40:42 +0000 (+0100) Subject: sys: Warn when vsnames is set but vserver support is disabled in backupninja.conf. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=24759636cc4b5439fa30eeac5af97e97671dc6be;p=matthijs%2Fupstream%2Fbackupninja.git sys: Warn when vsnames is set but vserver support is disabled in backupninja.conf. --- diff --git a/handlers/sys.in b/handlers/sys.in index f293840..5f3447b 100755 --- a/handlers/sys.in +++ b/handlers/sys.in @@ -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 ##############################