From 60d8cbe481ec12c2821f2bc1a0f718ecb21110e6 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 31 Jan 2022 23:25:11 +0100 Subject: [PATCH] Set env path --- scripts/install | 3 +-- scripts/upgrade | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 23c4c4d..6dbebbe 100644 --- a/scripts/install +++ b/scripts/install @@ -107,8 +107,7 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" - +env_path="$PATH" ynh_add_systemd_config #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 0cafe05..ec81c07 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -134,8 +134,7 @@ popd #================================================= ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" - +env_path="$PATH" # Create a dedicated systemd config ynh_add_systemd_config