mirror: Added warning message when mirror sync has failed.
This commit is contained in:
parent
cc3aaa0095
commit
44732902ae
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ for mirror in ${SYNC} ; do
|
||||||
rsync -aH -4 ${EXTRA_OPTS} --numeric-ids --delete --delete-after \
|
rsync -aH -4 ${EXTRA_OPTS} --numeric-ids --delete --delete-after \
|
||||||
--delay-updates --no-motd ${RSYNCOPTS} --log-file=${LOGFILE} \
|
--delay-updates --no-motd ${RSYNCOPTS} --log-file=${LOGFILE} \
|
||||||
${SRC} /srv/mirrors/${mirror}/
|
${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
|
if [ "${POSTCMD}" != "" ]; then
|
||||||
[ ${VERBOSE} -eq 1 ] && echo "Running post for ${mirror} ..."
|
[ ${VERBOSE} -eq 1 ] && echo "Running post for ${mirror} ..."
|
||||||
echo "`date '+%Y/%m/%d %H:%M:%S'` [$$] Running post for ${mirror} ..." \
|
echo "`date '+%Y/%m/%d %H:%M:%S'` [$$] Running post for ${mirror} ..." \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue