mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 15:29:05 +08:00
[bitnami/harbor-*] Adapt test to work in all distros (#46961)
Signed-off-by: Jota Martos <jotamartos@vmware.com>
This commit is contained in:
@@ -23,9 +23,9 @@ file:
|
||||
command:
|
||||
# Ensure permissions for Internal TLS
|
||||
check-permissions-system-certs:
|
||||
exec: ls -l /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-bundle.trust.crt /etc/ssl/certs/ca-certificates.crt 2>/dev/null | grep ".*-rw-rw-r--.*harbor"
|
||||
exec: ls -l /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-bundle.trust.crt /etc/ssl/certs/ca-certificates.crt 2>/dev/null | grep "^.\{5\}w.*harbor"
|
||||
exit-status: 0
|
||||
# Ensure a set of directories exist and the non-root user has write privileges to them
|
||||
check-directories-exist-with-user:
|
||||
exec: ls -dl /etc/ssl/certs /etc/pki/tls/certs/ 2>/dev/null | grep "drwxrwxr-x.*harbor"
|
||||
exit-status: 0
|
||||
exit-status: 0
|
||||
|
||||
Reference in New Issue
Block a user