From 7673ba6c6a5291294bd6495d65d36f0510d5da14 Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Thu, 7 Jul 2022 02:27:21 +0530 Subject: [PATCH] added ports to service --- 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 78b0e68..f284290 100755 --- a/scripts/install +++ b/scripts/install @@ -182,7 +182,7 @@ ynh_use_logrotate #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add $app --description="A modern IRC server" --log="/var/log/$app/$app.log" --needs_exposed_ports "$port" +yunohost service add $app --description="A modern IRC server" --log="/var/log/$app/$app.log" --needs_exposed_ports "$port,$secure_port" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/restore b/scripts/restore index e5632da..b1cfa6e 100755 --- a/scripts/restore +++ b/scripts/restore @@ -106,7 +106,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add $app --description="A modern IRC server" --log="/var/log/$app/$app.log" +yunohost service add $app --description="A modern IRC server" --log="/var/log/$app/$app.log" --needs_exposed_ports "$port,$secure_port" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/upgrade b/scripts/upgrade index 862b409..e13b1ec 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -113,7 +113,7 @@ ynh_use_logrotate --non-append #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add $app --description="A modern IRC server" --log="/var/log/$app/$app.log" +yunohost service add $app --description="A modern IRC server" --log="/var/log/$app/$app.log" --needs_exposed_ports "$port,$secure_port" #================================================= # START SYSTEMD SERVICE