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

Merge pull request #717 from x3rAx/patch-1

Fix removing ACL permissions on uninstall
This commit is contained in:
Kayou 2024-08-27 16:32:18 +02:00 committed by GitHub
commit 9da7de29d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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