Add a "latest" symlink when backup is successful

This commit is contained in:
David Arthur
2013-11-13 13:29:08 -05:00
parent 8a2e91813b
commit bda24be003
+1
View File
@@ -226,6 +226,7 @@ while [ "1" ]; do
fi fi
if [ "$RSYNC_EXIT_CODE" != "0" ]; then if [ "$RSYNC_EXIT_CODE" != "0" ]; then
ln -s $DEST $DEST/../latest
fn_log_error "Exited with error code $RSYNC_EXIT_CODE" fn_log_error "Exited with error code $RSYNC_EXIT_CODE"
exit $RSYNC_EXIT_CODE exit $RSYNC_EXIT_CODE
fi fi