From 81f623543dea3c9c3af179fcf3a92039a422e27d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 18 Oct 2020 22:21:30 +0200 Subject: [PATCH] Replace PHP version in cron --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index ac56b25..ea889c6 100755 --- a/scripts/install +++ b/scripts/install @@ -127,6 +127,7 @@ cron_path="/etc/cron.d/$app" ynh_replace_string --match_string="__FINALPATH__" --replace_string=$final_path --target_file="../conf/freshrss.cron" ynh_replace_string --match_string="__APP__" --replace_string=$app --target_file="../conf/freshrss.cron" +ynh_replace_string --match_string="__PHPVERSION__" --replace_string=$phpversion --target_file="../conf/freshrss.cron" cp ../conf/freshrss.cron "$cron_path" chmod 644 "$cron_path" diff --git a/scripts/upgrade b/scripts/upgrade index 30024a5..68f91f9 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -148,6 +148,7 @@ cron_path="/etc/cron.d/$app" ynh_replace_string --match_string="__FINALPATH__" --replace_string=$final_path --target_file="../conf/freshrss.cron" ynh_replace_string --match_string="__APP__" --replace_string=$app --target_file="../conf/freshrss.cron" +ynh_replace_string --match_string="__PHPVERSION__" --replace_string=$phpversion --target_file="../conf/freshrss.cron" cp ../conf/freshrss.cron "$cron_path" chmod 644 "$cron_path"