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
b54abca658
commit
aa115af9c6
3 changed files with 12 additions and 3 deletions
|
@ -215,7 +215,10 @@ echo "0 0 * * 0 $app cd $final_path/backups && php script.backup.php" > /etc/cro
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Les fichiers appartiennent à root
|
# Les fichiers appartiennent à root
|
||||||
chown -R root: $final_path
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
# Sauf certains dossiers includes, files et upload
|
# Sauf certains dossiers includes, files et upload
|
||||||
chown -R $app $final_path/{includes,files,upload}
|
chown -R $app $final_path/{includes,files,upload}
|
||||||
# Restreint l'accès au dossier de backup
|
# Restreint l'accès au dossier de backup
|
||||||
|
|
|
@ -74,7 +74,10 @@ chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
# Les fichiers appartiennent à root
|
# Les fichiers appartiennent à root
|
||||||
chown -R root: $final_path
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
# Sauf les dossiers includes, files et upload
|
# Sauf les dossiers includes, files et upload
|
||||||
chown -R $app $final_path/{includes,files,upload}
|
chown -R $app $final_path/{includes,files,upload}
|
||||||
|
|
||||||
|
|
|
@ -187,7 +187,10 @@ ynh_add_config --template="../conf/settings.php" --destination="$final_path/incl
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Les fichiers appartiennent à root
|
# Les fichiers appartiennent à root
|
||||||
chown -R root: $final_path
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
# Sauf certains dossiers includes, install, files et upload
|
# Sauf certains dossiers includes, install, files et upload
|
||||||
chown -R $app $final_path/{includes,install,files,upload}
|
chown -R $app $final_path/{includes,install,files,upload}
|
||||||
# Restreint l'accès au dossier de backup
|
# Restreint l'accès au dossier de backup
|
||||||
|
|
Loading…
Add table
Reference in a new issue