[Fai-commit] r6755 - trunk/bin
Thomas Lange
lange at alioth.debian.org
Sun Oct 23 09:37:30 UTC 2011
Author: lange
Date: 2011-10-23 09:37:30 +0000 (Sun, 23 Oct 2011)
New Revision: 6755
Modified:
trunk/bin/fai-chboot
Log:
check if configuration directory exists
Modified: trunk/bin/fai-chboot
===================================================================
--- trunk/bin/fai-chboot 2011-10-23 09:33:58 UTC (rev 6754)
+++ trunk/bin/fai-chboot 2011-10-23 09:37:30 UTC (rev 6755)
@@ -382,6 +382,7 @@
$opt_n and $opt_v = 1;
$opt_v and $verbose = 1;
$cfdir = $opt_C || $ENV{'FAI_ETC_DIR'} || '/etc/fai';
+-f $cfdir || die "ERROR: $cfdir does not exists.";
$opt_L and $opt_l = 1;
($opt_B and $opt_F) && die "ERROR: use only one option out of -B and -F\n";
($opt_S and $opt_I) && die "ERROR: use only one option out of -I and -S\n";
More information about the Fai-commit
mailing list