From 5108846acb8628d01aec2f8444e2256be2f13fae Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 26 May 2020 13:44:21 +0200 Subject: [PATCH] cron job to cron file --- scripts/install | 4 ++-- scripts/restore | 2 +- scripts/upgrade | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 5443717..77c3cca 100644 --- a/scripts/install +++ b/scripts/install @@ -219,9 +219,9 @@ ynh_app_setting_set --app="$app" --key=vapid_public_key --value="$vapid_public_k ynh_secure_remove --file="$final_path/live/key.txt" #================================================= -# SETUP CRON JOB +# SETUP THE CRON FILE #================================================= -ynh_script_progression --message="Setuping a cron job..." --weight=1 +ynh_script_progression --message="Setuping the cron file..." --weight=1 ynh_replace_string --match_string="__FINAL_PATH__" --replace_string="$final_path" --target_file="../conf/cron" cp -f ../conf/cron /etc/cron.d/$app diff --git a/scripts/restore b/scripts/restore index 175543a..694b649 100644 --- a/scripts/restore +++ b/scripts/restore @@ -158,7 +158,7 @@ ynh_systemd_action --service_name=${app}-streaming --action="start" --log_path=s #================================================= # RESTORE THE CRON FILE #================================================= -ynh_script_progression --message="Restoring a cron job..." --weight=2 +ynh_script_progression --message="Restoring the cron file..." --weight=2 ynh_restore_file --origin_path="/etc/cron.d/$app" diff --git a/scripts/upgrade b/scripts/upgrade index f14c08b..d578415 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -300,9 +300,9 @@ popd ynh_store_file_checksum --file="$config" #================================================= -# SETUP CRON JOB FOR REMOVING CACHE +# SETUP THE CRON FILE #================================================= -ynh_script_progression --message="Setuping a cron job..." --weight=1 +ynh_script_progression --message="Setuping the cron file..." --weight=1 ynh_replace_string --match_string="__FINAL_PATH__" --replace_string="$final_path" --target_file="../conf/cron" cp -f ../conf/cron /etc/cron.d/$app