mirror: Added warning message when mirror sync has failed.

This commit is contained in:
Timo Mkinen 2013-09-06 15:30:29 +03:00
parent cc3aaa0095
commit 44732902ae

View file

@ -99,6 +99,9 @@ for mirror in ${SYNC} ; do
rsync -aH -4 ${EXTRA_OPTS} --numeric-ids --delete --delete-after \
--delay-updates --no-motd ${RSYNCOPTS} --log-file=${LOGFILE} \
${SRC} /srv/mirrors/${mirror}/
if [ $? -ne 0 ]; then
echo "WARN: Encountered errors on ${mirror} sync, see ${LOGFILE} for details" 1>&2
fi
if [ "${POSTCMD}" != "" ]; then
[ ${VERBOSE} -eq 1 ] && echo "Running post for ${mirror} ..."
echo "`date '+%Y/%m/%d %H:%M:%S'` [$$] Running post for ${mirror} ..." \