]> git.pld-linux.org Git - packages/openssl.git/blobdiff - openssl-c_rehash.sh
qt4 QtNetwork rebuild
[packages/openssl.git] / openssl-c_rehash.sh
index 56a54b595a7f05d1f6ee67457dca36fcf4f88da3..0ea22637ee6dbce845a9e2caf62540aaaf5d0761 100644 (file)
@@ -140,7 +140,7 @@ hash_dir()
         fi
     done
 
-    ls -1 *.pem 2>/dev/null | while read FILE
+    ls -1 *.pem *.cer *.crt *.crl 2>/dev/null | while read FILE
     do
        check_file ${FILE}
         local FILE_TYPE=${?}
@@ -165,11 +165,11 @@ hash_dir()
 # choose the name of an ssl application
 if [ -n "${OPENSSL}" ]
 then
-    SSL_CMD=${OPENSSL}
+    SSL_CMD=$(which ${OPENSSL} 2>/dev/null)
 else
-    SSL_CMD=openssl
+    SSL_CMD=/usr/bin/openssl
     OPENSSL=${SSL_CMD}
-    export ${OPENSSL}
+    export OPENSSL
 fi
 
 # fix paths
@@ -177,7 +177,7 @@ PATH=${PATH}:${DIR}/bin
 export PATH
 
 # confirm existance/executability of ssl command
-if ! [ -x $( which ${SSL_CMD} ) ]
+if ! [ -x ${SSL_CMD} ]
 then
     echo "${0}: rehashing skipped ('openssl' program not available)" >&2
     exit 0
This page took 0.20411 seconds and 4 git commands to generate.