1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

fix bug upgrade old version

This commit is contained in:
BenoitCier 2021-03-31 14:32:00 +02:00
parent 8fe0ba1e7a
commit 24c8cfa286

View file

@ -84,6 +84,9 @@ then
ynh_script_progression --message="Upgrading upgrade to 0.8.5" --weight=5
# Download, check integrity, uncompress and patch the source from 0.8.5.src
ynh_setup_source --dest_dir="$final_path" --source_id="0.8.5"
# Set permissions on app files
chown $app:$app $final_path -R
chmod 755 $final_path -R
ynh_add_nginx_config
ynh_add_fpm_config --package="$extra_php_dependencies"
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
@ -102,6 +105,9 @@ then
ynh_script_progression --message="Upgrading upgrade to 0.9.8" --weight=5
# Download, check integrity, uncompress and patch the source from 0.9.8.src
ynh_setup_source --dest_dir="$final_path" --source_id="0.9.8"
# Set permissions on app files
chown $app:$app $final_path -R
chmod 755 $final_path -R
ynh_add_nginx_config
ynh_add_fpm_config --package="$extra_php_dependencies"
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)