1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mumbleserver_ynh.git synced 2024-09-03 19:46:03 +02:00

make sure web app has an available port

yunohost is pragmatic and only check if something listen to a port and doesn't record previous value given in the script.
I'm using a totally different port to make sure there is no overlap
This commit is contained in:
Jibec 2020-04-10 19:16:25 +02:00
parent dd6e96a9cb
commit ec768c6de6

View file

@ -70,7 +70,7 @@ ynh_app_setting_set "$app" port "$port"
yunohost firewall allow Both "$port" yunohost firewall allow Both "$port"
if [ "$mumbleweb" -eq 1 ] ; then if [ "$mumbleweb" -eq 1 ] ; then
port_web=$(ynh_find_port 64738) port_web=$(ynh_find_port 64800)
ynh_app_setting_set "$app" port_web "$port_web" ynh_app_setting_set "$app" port_web "$port_web"
# Open port in firewall # Open port in firewall
yunohost firewall allow Both "$port_web" yunohost firewall allow Both "$port_web"