TT#47113 Fix check of nginx logs

The ownership of nginx logs is www-data:adm. Also check empty files to
catch wrong permissions as soon as possible.

Change-Id: Icb9e1e1c9590bbef7021e3826a19419f7c21f9ce
changes/08/39508/3
Mykola Malkov 5 years ago
parent 77707e3749
commit 218d5b8a98

@ -118,21 +118,21 @@ command:
- '!/./'
[% END -%]
"if test -e /var/log/ngcp/nginx/; then find /var/log/ngcp/nginx/ -type f -size +0 -perm /o+rwx; fi":
"if test -e /var/log/ngcp/nginx/; then find /var/log/ngcp/nginx/ -type f -perm /o+rwx; fi":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
"if test -e /var/log/ngcp/nginx/; then find /var/log/ngcp/nginx/ -size +0 -type f ! -user www-data; fi":
"if test -e /var/log/ngcp/nginx/; then find /var/log/ngcp/nginx/ -type f ! -user www-data; fi":
exit-status: 0
stdout:
- '!/./'
stderr:
- '!/./'
"if test -e /var/log/ngcp/nginx/; then find /var/log/ngcp/nginx/ -size +0 -type f ! -group adm; fi":
"if test -e /var/log/ngcp/nginx/; then find /var/log/ngcp/nginx/ -type f ! -group adm; fi":
exit-status: 0
stdout:
- '!/./'

Loading…
Cancel
Save