forked from ISTI-ansible-roles/ansible-roles
Run the algorithms installer also when the file that lists all the installed algorithms is empty.
This commit is contained in:
parent
edeca5608c
commit
9aba15c7b2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue