Run the algorithms installer also when the file that lists all the installed algorithms is empty.

This commit is contained in:
Andrea Dell'Amico 2019-02-06 14:34:45 +01:00
parent edeca5608c
commit 9aba15c7b2
1 changed files with 2 additions and 2 deletions

View File

@ -208,8 +208,8 @@ check_lock_file
update_svn_repo update_svn_repo
if [ $SVN_UPDATE_STATUS -ne 0 ] ; then if [ $SVN_UPDATE_STATUS -ne 0 ] ; then
if [ -d "${LOG_DIR}" ] ; then if [ -d "${LOG_DIR}" ] ; then
if [ ! -f "$ALGORITHMS_INSTALLED_FILE" ] ; then 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. We are going to reinstall all the algorithms." 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 else
logger "algorithms-updater: nothing new to from SVN, exiting." logger "algorithms-updater: nothing new to from SVN, exiting."
cleanup 0 cleanup 0