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:
parent
7c064a770c
commit
0816c591e2
3 changed files with 12 additions and 0 deletions
|
@ -80,6 +80,10 @@ ynh_setup_source --dest_dir="$final_path"
|
||||||
# Delete the install directory.
|
# Delete the install directory.
|
||||||
ynh_secure_remove "$final_path/install"
|
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
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -69,6 +69,10 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$final_path"
|
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
|
# Les fichiers appartiennent à root
|
||||||
chown -R root: $final_path
|
chown -R root: $final_path
|
||||||
# Sauf les dossiers includes, files et upload
|
# Sauf les dossiers includes, files et upload
|
||||||
|
|
|
@ -97,6 +97,10 @@ then
|
||||||
# ynh_secure_remove "$final_path/install"
|
# ynh_secure_remove "$final_path/install"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue