소스 검색

Fix certificates symlinking

bryan 3 년 전
부모
커밋
b1674538a7
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      installJRMC

+ 3 - 3
installJRMC

@@ -776,9 +776,9 @@ symlinkCerts() {
 
     if [[ ! -f /etc/ssl/certs/ca-certificates.crt &&
     -f /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem ]]; then
-        ln_cmd="sudo ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/ssl/certs/ca-certificates.crt"
-        debug "$ln_cmd" || ln_cmd+=" &>/dev/null"
-        if ! exec "$ln_cmd"; then
+        debug "ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/ssl/certs/ca-certificates.crt"
+        if ! sudo ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem \
+        /etc/ssl/certs/ca-certificates.crt; then
             err "Symlinking certificates failed"
             return 1
         fi