1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/teampass_ynh.git synced 2024-09-03 20:26:37 +02:00

Fix permissions

This commit is contained in:
yalh76 2022-03-14 00:52:27 +01:00
parent 7c064a770c
commit 0816c591e2
3 changed files with 12 additions and 0 deletions

View file

@ -80,6 +80,10 @@ ynh_setup_source --dest_dir="$final_path"
# Delete the install directory.
ynh_secure_remove "$final_path/install"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# NGINX CONFIGURATION
#=================================================

View file

@ -69,6 +69,10 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
ynh_restore_file --origin_path="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
# Les fichiers appartiennent à root
chown -R root: $final_path
# Sauf les dossiers includes, files et upload

View file

@ -97,6 +97,10 @@ then
# ynh_secure_remove "$final_path/install"
fi
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# NGINX CONFIGURATION
#=================================================