diff --git a/smartgears/dataminer_app/templates/algorithms-updater.j2 b/smartgears/dataminer_app/templates/algorithms-updater.j2 index a96714e9..b0e7556e 100644 --- a/smartgears/dataminer_app/templates/algorithms-updater.j2 +++ b/smartgears/dataminer_app/templates/algorithms-updater.j2 @@ -208,8 +208,8 @@ check_lock_file update_svn_repo if [ $SVN_UPDATE_STATUS -ne 0 ] ; then if [ -d "${LOG_DIR}" ] ; then - if [ ! -f "$ALGORITHMS_INSTALLED_FILE" ] ; then - logger "algorithms-updater: nothing new to from SVN but the file that lists the installed algorithms does not exist. We are going to reinstall all the algorithms." + if [ ! -f "$ALGORITHMS_INSTALLED_FILE" ] || [ ! -s "$ALGORITHMS_INSTALLED_FILE" ] ; then + logger "algorithms-updater: nothing new to from SVN but the file that lists the installed algorithms does not exist or is empty. We are going to reinstall all the algorithms." else logger "algorithms-updater: nothing new to from SVN, exiting." cleanup 0