FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

Improve pre error handling

Merged Dr Adam Thorn requested to merge improve_pre_error_handling into master
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
@@ -34,6 +34,13 @@ fi
# Prepare the host if required
if [ ! -z "$PRE" ] ; then
$PRE $HN >>$LOGDIR/${HN}_${TAG}-pre.log 2>&1
PRE_EXIT=$?
if [ $PRE_EXIT -ne 0 ] ; then
echo PRE script $PRE exited with $PRE_EXIT >>$LOGFILE
exit $PRE_EXIT
fi
fi
# Do the backup
Loading