mirror of
https://github.com/YunoHost-Apps/simplex_ynh.git
synced 2024-09-03 20:26:28 +02:00
fix
This commit is contained in:
parent
649149d953
commit
52c685bc84
2 changed files with 20 additions and 0 deletions
3
doc/POST_UPGRADE.md
Normal file
3
doc/POST_UPGRADE.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Your SMP server address:
|
||||
|
||||
smp://__FINGERPRINT__@__PUBLIC_IP4__:__PORT__
|
|
@ -15,6 +15,23 @@ source /usr/share/yunohost/helpers
|
|||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
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
|
||||
|
||||
# If fingerprint doesn't exist, create it
|
||||
if [ -z "$fingerprint" ]; then
|
||||
fingerprint=$(cat /etc/opt/simplex/fingerprint)
|
||||
ynh_app_setting_set --app=$app --key=fingerprint --value=$fingerprint
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue