mirror of
https://github.com/YunoHost-Apps/pydio_ynh.git
synced 2024-09-03 20:16:05 +02:00
Fix upgrade from version listening on ipv6
This commit is contained in:
parent
cf19fb9466
commit
ccf13c79ec
1 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,13 @@ ynh_systemd_action --service_name="$app" --action="stop"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
# Previous installs might have been listening on local ipv6
|
||||
if ynh_compare_current_package_version --comparison lt "4.3.1~ynh1"; then
|
||||
jq ".defaults.sites[0].Binds[0] = \"127.0.0.1:$port\"" "$install_dir/.config/pydio/cells/pydio.json" \
|
||||
> "$install_dir/_pydio.json"
|
||||
mv "$install_dir/_pydio.json" "$install_dir/.config/pydio/cells/pydio.json"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue