Skip to content
Snippets Groups Projects
Commit 58955f25 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

Fix c_rehash code.

parent bceeb223
No related branches found
No related tags found
No related merge requests found
......@@ -271,11 +271,12 @@ case "${ACTION}" in
ldap)
# Generate cert hash files. Cert secret is mounted at /etc/ssl/ssl-certs
until [ -f /etc/ssl/certs/server.pem ]
until [[ -f /etc/ssl/certs/server.pem ]] && [[ -f /etc/ssl/certs/ldap-cabundle.pem ]]
do
if [ -f /etc/ssl/ssl-certs/server.pem ];
if [[ -f /etc/ssl/ssl-certs/server.pem ]] && [[ -f /etc/ssl/ssl-certs/ldap-cabundle.pem ]];
then
cp /etc/ssl/ssl-certs/* /etc/ssl/certs
cp /etc/ssl/ssl-certs/server.pem /etc/ssl/certs
cp /etc/ssl/ssl-certs/ldap-cabundle.pem /etc/ssl/certs
c_rehash /etc/ssl/certs
fi
sleep 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment