From 466b0a6c418bac82eb9c36d89c6f435aeec4a3e5 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 1 Mar 2021 18:57:27 +0100 Subject: [PATCH] Use global variables --- conf/nextcloud.cron | 2 +- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/nextcloud.cron b/conf/nextcloud.cron index 3a63ff5..e04f227 100644 --- a/conf/nextcloud.cron +++ b/conf/nextcloud.cron @@ -1 +1 @@ -*/15 * * * * __USER__ /usr/bin/php__YNH_PHP_VERSION__ -f __DESTDIR__/cron.php +*/15 * * * * __USER__ /usr/bin/php__PHPVERSION__ -f __FINALPATH__/cron.php diff --git a/scripts/install b/scripts/install index 1e1621d..601f42d 100755 --- a/scripts/install +++ b/scripts/install @@ -269,8 +269,8 @@ chown root: "$cron_path" chmod 644 "$cron_path" ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="$cron_path" -ynh_replace_string --match_string="__DESTDIR__" --replace_string="$final_path" --target_file="$cron_path" -ynh_replace_string --match_string="__YNH_PHP_VERSION__" --replace_string="$phpversion" --target_file="$cron_path" +ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$cron_path" +ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="$cron_path" exec_occ background:cron diff --git a/scripts/upgrade b/scripts/upgrade index 5805432..bb30679 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -405,8 +405,8 @@ chown root: "$cron_path" chmod 644 "$cron_path" ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="$cron_path" -ynh_replace_string --match_string="__DESTDIR__" --replace_string="$final_path" --target_file="$cron_path" -ynh_replace_string --match_string="__YNH_PHP_VERSION__" --replace_string="$phpversion" --target_file="$cron_path" +ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$cron_path" +ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="$cron_path" exec_occ background:cron