Skip to content

Commit

Permalink
Only collect "*.conf" for nginx (#3380)
Browse files Browse the repository at this point in the history
* Some unused files have syntax error, as a result, it won't be hit
  even there is a hit for the used files.

Signed-off-by: Huanhuan Li <[email protected]>
  • Loading branch information
huali027 authored Apr 19, 2022
1 parent 7d78fc5 commit 8999946
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions insights/specs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,9 @@ def md5chk_file_list(broker):
nfs_exports = simple_file("/etc/exports")
nfs_exports_d = glob_file("/etc/exports.d/*.exports")
nginx_conf = glob_file([
"/etc/nginx/*.conf", "/etc/nginx/conf.d/*", "/etc/nginx/default.d/*",
"/opt/rh/nginx*/root/etc/nginx/*.conf", "/opt/rh/nginx*/root/etc/nginx/conf.d/*", "/opt/rh/nginx*/root/etc/nginx/default.d/*",
"/etc/opt/rh/rh-nginx*/nginx/*.conf", "/etc/opt/rh/rh-nginx*/nginx/conf.d/*", "/etc/opt/rh/rh-nginx*/nginx/default.d/*"
"/etc/nginx/*.conf", "/etc/nginx/conf.d/*.conf", "/etc/nginx/default.d/*.conf",
"/opt/rh/nginx*/root/etc/nginx/*.conf", "/opt/rh/nginx*/root/etc/nginx/conf.d/*.conf", "/opt/rh/nginx*/root/etc/nginx/default.d/*.conf",
"/etc/opt/rh/rh-nginx*/nginx/*.conf", "/etc/opt/rh/rh-nginx*/nginx/conf.d/*.conf", "/etc/opt/rh/rh-nginx*/nginx/default.d/*.conf"
])
nginx_ssl_cert_enddate = foreach_execute(ssl_certificate.nginx_ssl_certificate_files, "/usr/bin/openssl x509 -in %s -enddate -noout")
nmcli_conn_show = simple_command("/usr/bin/nmcli conn show")
Expand Down

0 comments on commit 8999946

Please sign in to comment.