From 4f115d56f04aa8e5c121427546720ec6e5a5f0f3 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sun, 28 Feb 2021 23:15:14 +0530 Subject: [PATCH] added part to upgrade systemd script --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 87acfc7..39b87ca 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,6 +89,9 @@ ynh_script_progression --message="Making sure dedicated system user exists..." - # Create a dedicated user (if not existing) ynh_system_user_create --username=$app +ynh_replace_string --match_string=__PORT__ --replace_string="$port" --target_file="../conf/systemd.service" +ynh_replace_string --match_string=__PATH__ --replace_string="$path_url" --target_file="../conf/systemd.service" + #================================================= # SETUP SYSTEMD #=================================================