mirror of
https://github.com/YunoHost-Apps/galene_ynh.git
synced 2024-09-03 18:36:31 +02:00
Update upgrade
This commit is contained in:
parent
0176173540
commit
007a826320
1 changed files with 3 additions and 7 deletions
|
@ -24,7 +24,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
group_name=$(ynh_app_setting_get --app=$app --key=group_name)
|
group_name=$(ynh_app_setting_get --app=$app --key=group_name)
|
||||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||||
turn_port=$(ynh_app_setting_get --app=$app --key=turn_port)
|
turn_port=$(ynh_app_setting_get --app=$app --key=turn_port)
|
||||||
architecture=$(ynh_app_setting_get --app=$app --key=architecture)
|
architecture=$YNH_ARCH
|
||||||
|
|
||||||
if ynh_compare_current_package_version --comparison le --version 0.3.5~ynh3
|
if ynh_compare_current_package_version --comparison le --version 0.3.5~ynh3
|
||||||
then
|
then
|
||||||
|
@ -62,12 +62,6 @@ then
|
||||||
ynh_exec_warn_less yunohost firewall disallow TCP $port
|
ynh_exec_warn_less yunohost firewall disallow TCP $port
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If architecture doesn't exist, create it
|
|
||||||
if [ -z "$architecture" ]; then
|
|
||||||
architecture=$YNH_ARCH
|
|
||||||
architecture=$(ynh_app_setting_get --app=$app --key=architecture)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If final_path doesn't exist, create it
|
# If final_path doesn't exist, create it
|
||||||
if [ -z "$final_path" ]; then
|
if [ -z "$final_path" ]; then
|
||||||
final_path=/opt/yunohost/$app
|
final_path=/opt/yunohost/$app
|
||||||
|
@ -106,6 +100,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=2
|
ynh_script_progression --message="Upgrading source files..." --weight=2
|
||||||
|
|
||||||
|
# Remove the app directory securely
|
||||||
|
ynh_secure_remove --file=$final_path
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" #--keep="$final_path/data/config.json"
|
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" #--keep="$final_path/data/config.json"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue