From 711ad762148f649d96f8dee9fd51b9d338293928 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 14 Jun 2020 04:13:13 +0200 Subject: [PATCH] ! [YEP-2.12] You should not need to use 'sudo' --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 19e607f..7d2f159 100644 --- a/scripts/install +++ b/scripts/install @@ -156,7 +156,7 @@ exec_as "$app" php$phpversion "$final_path/admin/cli/purge_caches.php" ynh_script_progression --message="Adding cron job..." # Set up poller -sudo cp "../conf/cron" "/etc/cron.d/$app" +cp "../conf/cron" "/etc/cron.d/$app" ynh_replace_string "__APP__" "$app" "/etc/cron.d/$app" ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app" ynh_replace_string "__PHPVERSION__" "$phpversion" "/etc/cron.d/$app" diff --git a/scripts/upgrade b/scripts/upgrade index 5cee483..a278430 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -149,7 +149,7 @@ exec_as "$app" php$phpversion "$final_path/admin/cli/purge_caches.php" ynh_script_progression --message="Adding cron job..." # Set up poller -sudo cp "../conf/cron" "/etc/cron.d/$app" +cp "../conf/cron" "/etc/cron.d/$app" ynh_replace_string "__APP__" "$app" "/etc/cron.d/$app" ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app" ynh_replace_string "__PHPVERSION__" "$phpversion" "/etc/cron.d/$app"