mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Fix: Use absolute path for removing ACL permissions
This commit is contained in:
parent
aae9736b43
commit
abfb04de91
1 changed files with 3 additions and 3 deletions
|
@ -27,10 +27,10 @@ ynh_remove_fail2ban_config
|
||||||
ynh_secure_remove --file="/etc/cron.d/$app"
|
ynh_secure_remove --file="/etc/cron.d/$app"
|
||||||
|
|
||||||
# Cleaning ACL in home directories
|
# 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.'
|
# Clean ACL in every directories in /home, except those which start with 'yunohost.'
|
||||||
[[ ! $i == yunohost.* ]] \
|
[[ ! $path == /home/yunohost.* ]] \
|
||||||
&& setfacl --remove g:$app -- "$i" 2>&1
|
&& setfacl --remove g:$app -- "$path" 2>&1
|
||||||
done
|
done
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue