From 4db9df8ef6ab2db0dfb5dfaa131814f618e7c912 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 29 Dec 2020 16:40:52 +0100 Subject: [PATCH] Revert "Fix" This reverts commit a119abafb130cf56da53d45de5d4fcdc096e9ea9. --- conf/cron | 2 +- scripts/install | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/cron b/conf/cron index 984e39a..02900b9 100644 --- a/conf/cron +++ b/conf/cron @@ -1,2 +1,2 @@ MAILTO="admin" -5 * * * * __APP__ /usr/bin/php __FINALPATH__/console core:archive --url=https://__DOMAIN____PATH__ > /dev/null +5 * * * * __APP__ /usr/bin/php__PHPVERSION__ __FINALPATH__/console core:archive --url=https://__DOMAIN____PATH__ > /dev/null diff --git a/scripts/install b/scripts/install index e7bfdb0..e500f94 100755 --- a/scripts/install +++ b/scripts/install @@ -115,6 +115,7 @@ ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/etc/cron.d/$app" ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="/etc/cron.d/$app" ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="/etc/cron.d/$app" +ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app" diff --git a/scripts/upgrade b/scripts/upgrade index 629d08a..af0f499 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -169,6 +169,7 @@ ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/etc/cron.d/$app" ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="/etc/cron.d/$app" ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="/etc/cron.d/$app" +ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app"