"test sys_refresh_ref_cron.sh"

This commit is contained in:
Doug Le Tough 2017-07-25 12:21:57 +02:00
parent bae62c8a12
commit 26faf86213
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ function refresh_cronjobs
if [ ${#RESULT} -gt 0 ];
fct_message "Cronjob not in database, inserting..."
REQUEST_INSERT_PARAMS=$(echo ${REQUEST_ID_PARAMS} | sed -s 's/and/,/g')
psql -t -h ${DB_HOST} -U ${DB_USER} -d ${DB_DATABASE} -c "insert in ref_cron values (${REQUEST_INSERT_PARAMS});")
psql -t -h ${DB_HOST} -U ${DB_USER} -d ${DB_DATABASE} -c "insert in ref_cron values (${REQUEST_INSERT_PARAMS});"
else
fct_message "Cronjob already in database"
fi