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:
parent
8fe0ba1e7a
commit
24c8cfa286
1 changed files with 6 additions and 0 deletions
|
@ -84,6 +84,9 @@ then
|
||||||
ynh_script_progression --message="Upgrading upgrade to 0.8.5" --weight=5
|
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
|
# 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"
|
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_nginx_config
|
||||||
ynh_add_fpm_config --package="$extra_php_dependencies"
|
ynh_add_fpm_config --package="$extra_php_dependencies"
|
||||||
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
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
|
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
|
# 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"
|
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_nginx_config
|
||||||
ynh_add_fpm_config --package="$extra_php_dependencies"
|
ynh_add_fpm_config --package="$extra_php_dependencies"
|
||||||
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
|
|
Loading…
Add table
Reference in a new issue