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 23:50:58 +01:00
parent b54abca658
commit aa115af9c6
3 changed files with 12 additions and 3 deletions

View file

@ -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

View file

@ -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}

View file

@ -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