diff options
author | Daniel Hansson <github@hanssonit.se> | 2019-09-04 10:11:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-04 10:11:21 +0300 |
commit | 29ecc0021bed86e63a9d548eadb1290ec96a26e5 (patch) | |
tree | 86fb7badf4009ee0bf7c54566fb88ba3b751a06c /static/setup_secure_permissions_nextcloud.sh | |
parent | f3ab7100280bf5fba9aef84caee7629bddd9232b (diff) |
improve logging2 (#933)
Signed-off-by: enoch85 <github@hanssonit.se>
Diffstat (limited to 'static/setup_secure_permissions_nextcloud.sh')
-rw-r--r-- | static/setup_secure_permissions_nextcloud.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/static/setup_secure_permissions_nextcloud.sh b/static/setup_secure_permissions_nextcloud.sh index 125dc02e..9778a7a6 100644 --- a/static/setup_secure_permissions_nextcloud.sh +++ b/static/setup_secure_permissions_nextcloud.sh @@ -33,6 +33,16 @@ mkdir -p "$NCPATH"/updater mkdir -p "$VMLOGS" mkdir -p "$NCDATA" +if ! [ -f "$VMLOGS/nextcloud.log" ] +then + touch "$VMLOGS/nextcloud.log" +fi + +if ! [ -f "$VMLOGS/audit.log" ] +then + touch "$VMLOGS/audit.log" +fi + print_text_in_color "$ICyan" "chmod Files and Directories" find "${NCPATH}"/ -type f -print0 | xargs -0 chmod 0640 find "${VMLOGS}"/nextcloud.log -type f -print0 | xargs -0 chmod 0640 |