"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

View File

@ -184,7 +184,7 @@ function refresh_cronjobs
if [ ${#RESULT} -gt 0 ]; if [ ${#RESULT} -gt 0 ];
fct_message "Cronjob not in database, inserting..." fct_message "Cronjob not in database, inserting..."
REQUEST_INSERT_PARAMS=$(echo ${REQUEST_ID_PARAMS} | sed -s 's/and/,/g') 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 else
fct_message "Cronjob already in database" fct_message "Cronjob already in database"
fi fi