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:
parent
fc562329c6
commit
e243e56ad3
1 changed files with 15 additions and 11 deletions
|
@ -15,17 +15,6 @@ source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
upgrade_type=$(ynh_check_app_version_changed)
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# ENSURE DOWNWARD COMPATIBILITY
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
|
||||||
|
|
||||||
#public_ip4="$(curl -s ip.yunohost.org)" || true
|
|
||||||
#ynh_app_setting_set --app=$app --key=public_ip4 --value=$public_ip4
|
|
||||||
|
|
||||||
#fingerprint=$(cat /etc/opt/simplex/fingerprint)
|
|
||||||
#ynh_app_setting_set --app=$app --key=fingerprint --value=$fingerprint
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD UPGRADE STEPS
|
# STANDARD UPGRADE STEPS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -51,6 +40,21 @@ chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
chmod +x $install_dir/smp-server
|
chmod +x $install_dir/smp-server
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SPECIFIC SETUP
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
pushd "$install_dir"
|
||||||
|
public_ip4="$(curl -s ip.yunohost.org)" || true
|
||||||
|
ynh_app_setting_set --app=$app --key=public_ip4 --value=$public_ip4
|
||||||
|
./smp-server init --no-password --ip $public_ip4 -y
|
||||||
|
popd
|
||||||
|
|
||||||
|
fingerprint=$(cat /etc/opt/simplex/fingerprint)
|
||||||
|
ynh_app_setting_set --app=$app --key=fingerprint --value=$fingerprint
|
||||||
|
|
||||||
|
chown -R $app:$app "/etc/opt/simplex"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REAPPLY SYSTEM CONFIGURATIONS
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue