Fix cert symlinks
This commit is contained in:
@@ -874,9 +874,9 @@ symlinkCerts() {
|
|||||||
|
|
||||||
# Have to use command array instead of eval because of whitespace in $mc_cert_link
|
# Have to use command array instead of eval because of whitespace in $mc_cert_link
|
||||||
if [[ -f /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem ]]; then
|
if [[ -f /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem ]]; then
|
||||||
ln_cmd="sudo ln -fs /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem $mc_cert_link" # For RHEL
|
ln_cmd="sudo ln -fs /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem \"$mc_cert_link\"" # For RHEL
|
||||||
elif [[ -f /var/lib/ca-certificates/ca-bundle.pem ]]; then
|
elif [[ -f /var/lib/ca-certificates/ca-bundle.pem ]]; then
|
||||||
ln_cmd="sudo ln -fs /var/lib/ca-certificates/ca-bundle.pem $mc_cert_link" # For SUSE
|
ln_cmd="sudo ln -fs /var/lib/ca-certificates/ca-bundle.pem \"$mc_cert_link\"" # For SUSE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
debug "$ln_cmd" || ln_cmd+=" &>/dev/null"
|
debug "$ln_cmd" || ln_cmd+=" &>/dev/null"
|
||||||
|
|||||||
Reference in New Issue
Block a user