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:
parent
d00b268e2c
commit
a4f4e7e344
1 changed files with 6 additions and 12 deletions
|
@ -103,24 +103,18 @@ ynh_system_user_create "$app"
|
|||
# Create a dedicated php-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
|
||||
#=================================================
|
||||
|
||||
chown -R "$app": "$final_path"
|
||||
|
||||
#=================================================
|
||||
# UPDATE PLUGINS
|
||||
#=================================================
|
||||
|
||||
exec_as "$app" "cd $final_path && bin/gpm update -y"
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue