From 9aba15c7b28cf95152b81bbbb40caa9aecb2f69a Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 6 Feb 2019 14:34:45 +0100 Subject: [PATCH] Run the algorithms installer also when the file that lists all the installed algorithms is empty. --- smartgears/dataminer_app/templates/algorithms-updater.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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