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 #=================================================