diff --git a/scripts/install b/scripts/install index a5a9dcc..762d11a 100644 --- a/scripts/install +++ b/scripts/install @@ -119,6 +119,8 @@ ynh_add_config --template="../conf/config.default.json" --destination="$final_pa #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 +ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/systemd.service" + ynh_add_systemd_config #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 86475bf..6c35fa6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -128,6 +128,8 @@ ynh_system_user_create --username=$app #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=2 +ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/systemd.service" + ynh_add_systemd_config #=================================================