projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
862dda1
)
Check for failed updatebase and instsoft hook executions
author
Michael Prokop
<mika@grml.org>
Thu, 3 Jul 2014 14:03:04 +0000
(16:03 +0200)
committer
Michael Prokop
<mika@grml.org>
Thu, 3 Jul 2014 14:04:14 +0000
(16:04 +0200)
grml-live
patch
|
blob
|
history
diff --git
a/grml-live
b/grml-live
index
cce5a68
..
84ef39c
100755
(executable)
--- a/
grml-live
+++ b/
grml-live
@@
-746,6
+746,11
@@
else
grep 'FAILED with exit code' $CHECKLOG/shell.log >> $LOGFILE && ERROR=6
fi
grep 'FAILED with exit code' $CHECKLOG/shell.log >> $LOGFILE && ERROR=6
fi
+ if [ -r "$CHECKLOG/fai.log" ] ; then
+ grep 'updatebase.*FAILED with exit code' "$CHECKLOG/fai.log" >> "$LOGFILE" && ERROR=7
+ grep 'instsoft.*FAILED with exit code' "$CHECKLOG/fai.log" >> "$LOGFILE" && ERROR=8
+ fi
+
if [ -n "$ERROR" ] ; then
log "Error: there was a critical error [${ERROR}] during execution of stage 'fai dirinstall' [$(date)]"
eerror "Error: there was a critical error during execution of stage 'fai dirinstall'"
if [ -n "$ERROR" ] ; then
log "Error: there was a critical error [${ERROR}] during execution of stage 'fai dirinstall' [$(date)]"
eerror "Error: there was a critical error during execution of stage 'fai dirinstall'"