Skip to content

Commit

Permalink
multimedia: fix again edgecase where setfacl crashes because of broke…
Browse files Browse the repository at this point in the history
…n symlinks..
  • Loading branch information
alexAubin committed Jan 14, 2024
1 parent 05f7c3a commit 1ce606d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/multimedia
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ ynh_multimedia_build_main_dir() {

## Application des droits étendus sur le dossier multimedia.
# Droit d'écriture pour le groupe et le groupe multimedia en acl et droit de lecture pour other:
setfacl -RnL -m g:$MEDIA_GROUP:rwX,g::rwX,o:r-X "$MEDIA_DIRECTORY"
setfacl -RnL -m g:$MEDIA_GROUP:rwX,g::rwX,o:r-X "$MEDIA_DIRECTORY" || true
# Application de la même règle que précédemment, mais par défaut pour les nouveaux fichiers.
setfacl -RnL -m d:g:$MEDIA_GROUP:rwX,g::rwX,o:r-X "$MEDIA_DIRECTORY"
setfacl -RnL -m d:g:$MEDIA_GROUP:rwX,g::rwX,o:r-X "$MEDIA_DIRECTORY" || true
# Réglage du masque par défaut. Qui garantie (en principe...) un droit maximal à rwx. Donc pas de restriction de droits par l'acl.
setfacl -RL -m m::rwx "$MEDIA_DIRECTORY" || true
}
Expand Down

0 comments on commit 1ce606d

Please sign in to comment.