1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grav_ynh.git synced 2024-09-03 19:16:01 +02:00

[mod] Swap chown and plugins update

[mod] Use cd instead of pushd
This commit is contained in:
tituspijean 2018-10-13 11:26:18 +02:00
parent d00b268e2c
commit a4f4e7e344

View file

@ -103,24 +103,18 @@ ynh_system_user_create "$app"
# Create a dedicated php-fpm config # Create a dedicated php-fpm config
ynh_add_fpm_config ynh_add_fpm_config
#=================================================
# SPECIFIC UPGRADE
#=================================================
# UPDATE PLUGINS
#=================================================
pushd "$final_path"
exec_as "$app" "bin/gpm update -y"
popd
#=================================================
# GENERIC FINALIZATION
#================================================= #=================================================
# SECURE FILES AND DIRECTORIES # SECURE FILES AND DIRECTORIES
#================================================= #=================================================
chown -R "$app": "$final_path" chown -R "$app": "$final_path"
#=================================================
# UPDATE PLUGINS
#=================================================
exec_as "$app" "cd $final_path && bin/gpm update -y"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================