From b537e0fe26adef3a915bba5d3b1b37e2e1df2ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 22 Feb 2020 20:22:07 +0100 Subject: [PATCH] Fix conflict between fileserver and webdav port --- scripts/install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index 5c4e67c..762ac18 100644 --- a/scripts/install +++ b/scripts/install @@ -47,6 +47,10 @@ seahub_port=$(ynh_find_port --port 8000) fileserver_port=$(ynh_find_port --port 8082) webdav_port=$(ynh_find_port --port 8080) +if [ $fileserver_port -eq $webdav_port ]; then + webdav_port=$(ynh_find_port --port $((fileserver_port + 1))) +fi + # store config in yunohost ynh_script_progression --message="Storing installation settings..." ynh_app_setting_set --app $app --key server_name --value "$server_name"