1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Fix cron in change_url

This commit is contained in:
Maniack Crudelis 2019-05-12 20:58:25 +02:00 committed by GitHub
parent 21b087ea6e
commit f93e5381c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,9 +128,8 @@ ynh_mysql_execute_as_root "UPDATE wp_options SET option_value='$new_domain$new_p
# UPDATE THE CRON # 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. 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 # GENERIC FINALISATION