Fix conflict between fileserver and webdav port

This commit is contained in:
Josué Tille 2020-02-22 20:22:07 +01:00
parent d4be0d561e
commit b537e0fe26
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -47,6 +47,10 @@ seahub_port=$(ynh_find_port --port 8000)
fileserver_port=$(ynh_find_port --port 8082) fileserver_port=$(ynh_find_port --port 8082)
webdav_port=$(ynh_find_port --port 8080) 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 # store config in yunohost
ynh_script_progression --message="Storing installation settings..." ynh_script_progression --message="Storing installation settings..."
ynh_app_setting_set --app $app --key server_name --value "$server_name" ynh_app_setting_set --app $app --key server_name --value "$server_name"