mirror of
https://github.com/YunoHost-Apps/fluffychat_ynh.git
synced 2024-09-03 18:36:04 +02:00
fix upgrade, create 'default_matrix_server' if needed
This commit is contained in:
parent
7707e5a015
commit
0f39014812
1 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,12 @@ source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
upgrade_type=$(ynh_check_app_version_changed)
|
||||||
|
|
||||||
|
# if we update from a version prior to the config panel, create new setting
|
||||||
|
if [ -z "${default_matrix_server:-}" ]; then
|
||||||
|
default_matrix_server="matrix.org"
|
||||||
|
ynh_app_setting_set --app="$app" --key=default_matrix_server --value="$default_matrix_server"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...)
|
# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...)
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue