From cb4a22df8e147a65671b509425c0e3c7af29d2b2 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 21 Feb 2021 09:55:50 +0100 Subject: [PATCH] Fix --- scripts/install | 5 +++++ scripts/upgrade | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/scripts/install b/scripts/install index bfec5f9..9470951 100644 --- a/scripts/install +++ b/scripts/install @@ -142,6 +142,11 @@ popd #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 +ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file=../conf/systemd.service +ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file=../conf/systemd.service +ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file=../conf/systemd.service +ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file=../conf/systemd.service + ynh_add_systemd_config #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1b5f487..47b2c34 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -172,6 +172,11 @@ popd # SETUP SYSTEMD #================================================= +ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file=../conf/systemd.service +ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file=../conf/systemd.service +ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file=../conf/systemd.service +ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file=../conf/systemd.service + ynh_add_systemd_config #=================================================