1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Fix removing ACL permissions on uninstall

According to `man setfacl`, for the `--remove`  option "[o]nly ACL
entries without the perms field are accepted as parameters".
This commit is contained in:
Björn Richter 2024-08-14 00:27:37 +02:00 committed by ^x3ro
parent a6bab72a87
commit 1c8a1ba2c8

View file

@ -30,7 +30,7 @@ ynh_secure_remove --file="/etc/cron.d/$app"
for i in $(ls /home); do
# Clean ACL in every directories in /home, except those which start with 'yunohost.'
[[ ! $i == yunohost.* ]] \
&& setfacl --remove g:$app:rwx 2>&1
&& setfacl --remove g:$app 2>&1
done
#=================================================