1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nitter_ynh.git synced 2024-09-03 19:46:24 +02:00

Fix acl restore

Change order of restore steps
This commit is contained in:
Jules Bertholet 2021-03-29 23:54:30 -04:00
parent d1f9d610e6
commit 98bc19cac2

View file

@ -64,6 +64,14 @@ ynh_script_progression --message="Recreating the dedicated system user..." --wei
# Create the dedicated user (if not existing)
ynh_system_user_create --username=$app
#=================================================
# REINSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Reinstalling dependencies..." --weight=1
# Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# RESTORE USER RIGHTS
#=================================================
@ -76,14 +84,6 @@ chmod -R g-w $final_path
setfacl -n -m user:www-data:rx $final_path
setfacl -n -R -m user:www-data:rx -m default:user:www-data:rx $final_path/public
#=================================================
# REINSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Reinstalling dependencies..." --weight=1
# Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# SPECIFIC RESTORATION
#=================================================