1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/simplex_ynh.git synced 2024-09-03 20:26:28 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2023-03-04 19:43:52 +01:00
parent d5cbf20e80
commit eaf95acb43

View file

@ -20,11 +20,8 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# If public_ip4 doesn't exist, create it
if [ -z "$public_ip4" ]; then
public_ip4="$(curl -s ip.yunohost.org)" || true
ynh_app_setting_set --app=$app --key=public_ip4 --value=$public_ip4
fi
public_ip4="$(curl -s ip.yunohost.org)" || true
ynh_app_setting_set --app=$app --key=public_ip4 --value=$public_ip4
# If fingerprint doesn't exist, create it
if [ -z "$fingerprint" ]; then