diff --git a/conf/cron_leed b/conf/cron_leed index ab38f60..a338199 100644 --- a/conf/cron_leed +++ b/conf/cron_leed @@ -1,3 +1,3 @@ # Mise a jour de leed toutes les 2 heures. -0 */2 * * * __ADMIN__ wget -q -O - "https://__DOMAIN____PATH__/action.php?action=synchronize&code=__CODESYNC__" > /dev/null 2>&1 +0 */2 * * * root wget -q -O - "https://__DOMAIN____PATH__/action.php?action=synchronize&code=__CODESYNC__" > /dev/null 2>&1 diff --git a/scripts/install b/scripts/install index 5401721..47897b3 100644 --- a/scripts/install +++ b/scripts/install @@ -132,7 +132,6 @@ code_sync=$(mysql -h localhost -u $db_name -p$db_pwd -s $db_name -e 'SELECT valu #================================================= ynh_script_progression --message="Setting up a cron file..." -ynh_replace_string --match_string="__ADMIN__" --replace_string="$admin" --target_file=../conf/cron_leed ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file=../conf/cron_leed ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file=../conf/cron_leed ynh_replace_string --match_string="__CODESYNC__" --replace_string="$code_sync" --target_file=../conf/cron_leed diff --git a/scripts/upgrade b/scripts/upgrade index feea802..a19bc6d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -191,7 +191,6 @@ code_sync=$(mysql -h localhost -u $db_name -p$db_pwd -s $db_name -e 'SELECT valu # SETUP CRON FILE FOR SYNCHRONISATION #================================================= -ynh_replace_string --match_string="__ADMIN__" --replace_string="$admin" --target_file=../conf/cron_leed ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file=../conf/cron_leed ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file=../conf/cron_leed ynh_replace_string --match_string="__CODESYNC__" --replace_string="$code_sync" --target_file=../conf/cron_leed