From 7b5bcabfbc7499fdbdbcecc70e8a758198baea57 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 31 Jan 2019 23:04:35 +0100 Subject: [PATCH] Fix port selection --- conf/systemd.service | 1 + scripts/install | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 378fb19..8891f3b 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,6 +7,7 @@ Type=simple User=__APP__ Group=__APP__ Environment="PATH=__NODEJS_PATH__" +Environment="PORT=__PORT__" WorkingDirectory=__FINALPATH__/ ExecStart=__FINALPATH__/node_modules/.bin/ts-node --project __FINALPATH__/tsconfig.json __FINALPATH__/bin/server.ts >> /var/log/__APP__/__APP__.log 2>&1 diff --git a/scripts/install b/scripts/install index e0abe9e..80a06c7 100644 --- a/scripts/install +++ b/scripts/install @@ -80,7 +80,7 @@ ynh_app_setting_set $app is_public $is_public ### - Remove the section "CLOSE A PORT" in the remove script # Find a free port -port=$(ynh_find_port 8000) +port=$(ynh_find_port 8095) # Open this port #yunohost firewall allow --no-upnp TCP $port 2>&1 ynh_app_setting_set $app port $port