From 94f21ea20e47cae27fc71cf3375b5912453549aa Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 1 Dec 2022 23:22:46 +0100 Subject: [PATCH] multimedia: fix edgecase where setfacl crashes because of broken symlinks --- helpers/multimedia | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/multimedia b/helpers/multimedia index abeb9ed2c..05479a84a 100644 --- a/helpers/multimedia +++ b/helpers/multimedia @@ -48,7 +48,7 @@ ynh_multimedia_build_main_dir() { # 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" # 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" + setfacl -RL -m m::rwx "$MEDIA_DIRECTORY" || true } # Add a directory in yunohost.multimedia