[Fai-commit] r3071 - trunk/lib
fai-repository at svn.debian.org
fai-repository at svn.debian.org
Mon Nov 21 15:47:34 UTC 2005
Author: lange
Date: 2005-11-21 15:47:33 +0000 (Mon, 21 Nov 2005)
New Revision: 3071
Modified:
trunk/lib/subroutines
Log:
test if hooks are executable (closes: #338524)
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2005-11-21 15:06:54 UTC (rev 3070)
+++ trunk/lib/subroutines 2005-11-21 15:47:33 UTC (rev 3071)
@@ -120,6 +120,14 @@
for cl in $classes; do
hfile=$FAI/hooks/$hook.$cl
+ if [ -f $hfile -a ! -x $hfile ]; then
+ echo "WARNING: Skipping $hfile execustion because it's not executable."
+ continue
+ fi
+ if [ -f $hfile.source -a ! -x $hfile.source ]; then
+ echo "WARNING: Skipping $hfile.source execustion because it's not executable."
+ continue
+ fi
if [ -x $hfile ]; then
echo "Calling hook: $hook.$cl"
sndmon "HOOK $hook.$cl"
More information about the Fai-commit
mailing list