diff options
author | Daniel Hansson <github@hanssonit.se> | 2020-11-29 04:27:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-29 04:27:40 +0300 |
commit | 7dfbbb70da2f322d772dc3bbe1950fefa6b39664 (patch) | |
tree | c289ef11d779677f86b63d630b35758db1a0c12f /static/setup_secure_permissions_nextcloud.sh | |
parent | 2e8a9df6c13c1bcd265a2abde4f28a3bdde82bce (diff) |
fixes (#1701)
Diffstat (limited to 'static/setup_secure_permissions_nextcloud.sh')
-rw-r--r-- | static/setup_secure_permissions_nextcloud.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/setup_secure_permissions_nextcloud.sh b/static/setup_secure_permissions_nextcloud.sh index eb00815f..7bff1f16 100644 --- a/static/setup_secure_permissions_nextcloud.sh +++ b/static/setup_secure_permissions_nextcloud.sh @@ -78,7 +78,7 @@ then # Always chown root dir chown "${htuser}":"${htgroup}" "${NCDATA}"/ # Check subdirs as well - if find "${NCDATA}" -mindepth 1 -type d -exec stat --printf='%U:%G\n' {} \; | grep -v "${htuser}:${htgroup}" + if find "${NCDATA}" -maxdepth 4 -type d -exec stat --printf='%U:%G\n' {} \; | grep -v "${htuser}:${htgroup}" then chown -R "${htuser}":"${htgroup}" "${NCDATA}"/ fi |