Merge pull request #15 from mumrah/master

Add a "latest" symlink when backup is successful
This commit is contained in:
Laurent
2013-11-15 01:16:05 -08:00
+2
View File
@@ -226,6 +226,8 @@ while [ "1" ]; do
fi fi
if [ "$RSYNC_EXIT_CODE" != "0" ]; then if [ "$RSYNC_EXIT_CODE" != "0" ]; then
rm -f $DEST_FOLDER/latest
ln -s $DEST $DEST_FOLDER/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