|
@@ -21,6 +21,7 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
|
|
|
admin=$(ynh_app_setting_get --app=$app --key=admin)
|
|
admin=$(ynh_app_setting_get --app=$app --key=admin)
|
|
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
|
|
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
|
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
|
|
|
|
+phpversion=$YNH_PHP_VERSION
|
|
|
|
|
|
|
|
#=================================================
|
|
#=================================================
|
|
|
# CHECK VERSION
|
|
# CHECK VERSION
|
|
@@ -86,7 +87,7 @@ then
|
|
|
ynh_script_progression --message="Upgrading source files..." --weight=3
|
|
ynh_script_progression --message="Upgrading source files..." --weight=3
|
|
|
|
|
|
|
|
# Download, check integrity, uncompress and patch the source from app.src
|
|
# Download, check integrity, uncompress and patch the source from app.src
|
|
|
- ynh_setup_source --dest_dir="$final_path"
|
|
|
|
|
|
|
+ ynh_setup_source --dest_dir="$final_path" --keep="$final_path/img $final_path/override"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
chmod 750 "$final_path"
|
|
chmod 750 "$final_path"
|
|
@@ -116,6 +117,13 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
|
|
# Create a dedicated PHP-FPM config
|
|
# Create a dedicated PHP-FPM config
|
|
|
ynh_add_fpm_config
|
|
ynh_add_fpm_config
|
|
|
|
|
|
|
|
|
|
+#=================================================
|
|
|
|
|
+# PHP-FPM CONFIGURATION
|
|
|
|
|
+#=================================================
|
|
|
|
|
+ynh_script_progression --message="Upgrading database..." --weight=1
|
|
|
|
|
+
|
|
|
|
|
+php$phpversion $final_path/install/upgrade/upgrade.php
|
|
|
|
|
+
|
|
|
#=================================================
|
|
#=================================================
|
|
|
# RELOAD NGINX
|
|
# RELOAD NGINX
|
|
|
#=================================================
|
|
#=================================================
|