From b1210baf9e31b31a28b9f4372da3357d52fce2ba Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 1 Jul 2019 22:58:05 +0200 Subject: [PATCH] Fix sudo not needed --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 7487b6f..9ffcaa7 100755 --- a/scripts/install +++ b/scripts/install @@ -110,7 +110,7 @@ ynh_replace_string --match_string="YNH_WWW_PATH" --replace_string="$final_path" ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="../conf/cron" ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/cron" ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="../conf/cron" -sudo cp -f ../conf/cron /etc/cron.d/$app +cp -f ../conf/cron /etc/cron.d/$app #================================================= # MODIFY A CONFIG FILE (TO DO: Automate install) diff --git a/scripts/upgrade b/scripts/upgrade index 9a5866e..ff0d8c2 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -130,7 +130,7 @@ ynh_replace_string --match_string="YNH_WWW_PATH" --replace_string="$final_path" ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="../conf/cron" ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/cron" ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="../conf/cron" -sudo cp -f ../conf/cron /etc/cron.d/$app +cp -f ../conf/cron /etc/cron.d/$app #================================================= # GENERIC FINALIZATION