From 0fa11731f5c895f9e2ac31e85078eb2db6c44a31 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 10 May 2019 00:33:54 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index b38b194..eb11fdd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -147,6 +147,16 @@ ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/setti # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php" +#================================================= +# SET THE CRON FILE +#================================================= +ynh_print_info --message="Set the cron file" + +cp -f ../conf/cron /etc/cron.d/$app + +ynh_replace_string "__FINALPATH__" "$final_path" /etc/cron.d/$app +ynh_replace_string "__APP__" "$app" /etc/cron.d/$app + #================================================= # GENERIC FINALIZATION #=================================================