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"