[Fai-commit] r4136 - trunk/lib
Thomas Lange
lange at alioth.debian.org
Fri Nov 3 16:49:05 CET 2006
Author: lange
Date: 2006-11-03 16:49:05 +0100 (Fri, 03 Nov 2006)
New Revision: 4136
Modified:
trunk/lib/get-config-dir
Log:
replace die call with echo and exit statement, add error message
Modified: trunk/lib/get-config-dir
===================================================================
--- trunk/lib/get-config-dir 2006-11-03 13:16:59 UTC (rev 4135)
+++ trunk/lib/get-config-dir 2006-11-03 15:49:05 UTC (rev 4136)
@@ -11,7 +11,8 @@
if [ -z "$FAI_CONFIG_SRC" ]; then
sendmon "TASKERROR get_fai_dir 21"
- die "Error: Provide the URL to obtain the fai config storage in \$FAI_CONFIG_SRC"
+ echo "Error: Provide the URL to obtain the fai config storage in \$FAI_CONFIG_SRC"
+ exit 21
fi
# extract method to get the config dir
@@ -27,10 +28,14 @@
get-config-dir-$method
else
sendmon "TASKERROR get_fai_dir 22"
- die "Error: get-config-dir-"$method "not found"
+ echo "Error: get-config-dir-"$method "not found"
+ exit 22
fi
ln -s $FAI /var/run/fai/current_config
if [ ! -d $FAI/class ]; then
echo "WARNING: directory $FAI/class not found."
+ sendmon "TASKERROR get_fai_dir 23"
+ exit 23
fi
+exit 0
More information about the Fai-commit
mailing list