2020-04-19 15:28:43 +02:00
|
|
|
#!/bin/bash
|
2015-03-01 23:51:00 +01:00
|
|
|
|
2020-04-19 15:28:43 +02:00
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
source /usr/share/yunohost/helpers
|
2015-03-01 23:51:00 +01:00
|
|
|
|
2020-04-19 15:28:43 +02:00
|
|
|
#=================================================
|
|
|
|
# LOAD SETTINGS
|
|
|
|
#=================================================
|
2020-05-03 14:38:50 +02:00
|
|
|
ynh_script_progression --message="Loading installation settings..."
|
2020-04-19 15:28:43 +02:00
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
|
|
|
|
# Retrieve arguments
|
|
|
|
domain=$(ynh_app_setting_get --app $app --key domain)
|
|
|
|
admin=$(ynh_app_setting_get --app $app --key admin)
|
|
|
|
final_path=$(ynh_app_setting_get --app $app --key final_path)
|
2015-05-31 12:40:22 +02:00
|
|
|
|
2020-04-19 15:28:43 +02:00
|
|
|
ynh_abort_if_errors
|
2015-03-01 23:51:00 +01:00
|
|
|
|
2020-05-03 14:38:50 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# Check upgrade type
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression --message="Check upgrade type..."
|
2020-04-22 15:31:52 +02:00
|
|
|
upgrade_type=$(ynh_check_app_version_changed)
|
2020-04-19 15:28:43 +02:00
|
|
|
# nothing to do yet!!
|
2020-04-22 15:31:52 +02:00
|
|
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
|
|
|
then
|
|
|
|
# do something!
|
|
|
|
echo "to be implemented"
|
|
|
|
fi
|