From 1bb8879997dff92ed0e047400209d49fc019a005 Mon Sep 17 00:00:00 2001 From: anmol Date: Mon, 9 Nov 2020 18:43:53 +0530 Subject: [PATCH] added port and domain replacement in systemd --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 872a7db..b8fe100 100755 --- a/scripts/install +++ b/scripts/install @@ -190,7 +190,7 @@ ynh_script_progression --message="Integrating service in YunoHost..." ### - Remove the section "REMOVE SERVICE INTEGRATION IN YUNOHOST" in the remove script ### - As well as the section "INTEGRATE SERVICE IN YUNOHOST" in the restore script ### - And the section "INTEGRATE SERVICE IN YUNOHOST" in the upgrade script -ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port datadir" +ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port port domain datadir" yunohost service add $app --description "$app service" --log "$datadir/log/debug-last.log" --needs_exposed_ports "$fs_port" diff --git a/scripts/restore b/scripts/restore index 7b61ac4..26e2ac5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -101,7 +101,7 @@ systemctl enable $app.service #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port datadir" +ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port port domain datadir" yunohost service add $app --description "$app service" --log "$datadir/log/debug-last.log" --needs_exposed_ports "$fs_port" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 706fc8d..f5187f6 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -140,7 +140,7 @@ chown -R $app: $datadir # INTEGRATE SERVICE IN YUNOHOST #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port datadir" +ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port port domain datadir" yunohost service add $app --description "$app service" --log "$datadir/log/debug-last.log" --needs_exposed_ports "$fs_port" #=================================================