From f93e5381c793b815612116e101dd8a8b4e574867 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 12 May 2019 20:58:25 +0200 Subject: [PATCH] Fix cron in change_url --- scripts/change_url | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 30e3250..8731ed3 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -128,9 +128,8 @@ ynh_mysql_execute_as_root "UPDATE wp_options SET option_value='$new_domain$new_p # UPDATE THE CRON #================================================= -ynh_replace_string "$old_domain$old_path" "$new_domain$new_path" echo "# Reach everyday wp-cron.php?doing_wp_cron to trig the internal wordpress cron. -0 3 * * * root wget -q -O - https:///wp-cron.php?doing_wp_cron >/dev/null 2>&1" > /etc/cron.d/$app +0 3 * * * root wget -q -O - https://$new_domain$new_path/wp-cron.php?doing_wp_cron >/dev/null 2>&1" > /etc/cron.d/$app #================================================= # GENERIC FINALISATION