diff options
author | Daniel Hansson <github@hanssonit.se> | 2020-07-23 14:50:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 14:50:10 +0300 |
commit | 64f5271a3e8d823c3ea86f06b1263ebfaceec685 (patch) | |
tree | 7bbc4263ad68fbcdf3a3d6e838fe84408af2863d /static/setup_secure_permissions_nextcloud.sh | |
parent | 19486feab1ee1b705393599d78f8cc159ab455e8 (diff) |
Fix #1078
Diffstat (limited to 'static/setup_secure_permissions_nextcloud.sh')
-rw-r--r-- | static/setup_secure_permissions_nextcloud.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/static/setup_secure_permissions_nextcloud.sh b/static/setup_secure_permissions_nextcloud.sh index 1e81a53a..4c07e8a3 100644 --- a/static/setup_secure_permissions_nextcloud.sh +++ b/static/setup_secure_permissions_nextcloud.sh @@ -51,9 +51,10 @@ find "${VMLOGS}"/ -type d -print0 | xargs -0 chmod 0750 find "${VMLOGS}"/nextcloud.log -type f -print0 | xargs -0 chmod 0640 print_text_in_color "$ICyan" "chown Directories" -chown "${htuser}":"${htgroup}" "${VMLOGS}"/ +chown -R "${rootuser}":"${htgroup}" "${VMLOGS}"/ chown "${htuser}":"${htgroup}" "${VMLOGS}"/nextcloud.log chown "${htuser}":"${htgroup}" "${VMLOGS}"/audit.log +chown "${rootuser}":"${rootuser}" "${VMLOGS}"/update.log chown -R "${rootuser}":"${htgroup}" "${NCPATH}"/ chown -R "${htuser}":"${htgroup}" "${NCPATH}"/apps/ chown -R "${htuser}":"${htgroup}" "${NCPATH}"/config/ |