Created
February 18, 2015 09:43
-
-
Save parastuffs/612853d5383f5138527f to your computer and use it in GitHub Desktop.
Link local openssl to custom install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OPENSSL=/usr/local | |
OPENSSL_VANILLA=/usr/local/openssl_vanilla | |
KO_FOLDER=/home/root | |
files=(bin/c_rehash | |
bin/openssl | |
lib/engines/lib4758cca.so | |
lib/engines/libaep.so | |
lib/engines/libatalla.so | |
lib/engines/libcapi.so | |
lib/engines/libchil.so | |
lib/engines/libcswift.so | |
lib/engines/libgmp.so | |
lib/engines/libgost.so | |
lib/engines/libnuron.so | |
lib/engines/libpadlock.so | |
lib/engines/libsureware.so | |
lib/engines/libubsec.so | |
lib/libcrypto.a | |
lib/libcrypto.so.1.0.0 | |
lib/libssl.a | |
lib/libssl.so.1.0.0 | |
misc/CA.pl | |
misc/CA.sh | |
misc/c_hash | |
misc/c_info | |
misc/c_issuer | |
misc/c_name | |
misc/tsget) | |
for i in ${files[@]}; do | |
if [ ! -e ${OPENSSL}/${i} ] | |
then | |
echo "${OPENSSL}/${i} is missing" | |
exit 1 | |
fi | |
if [ ! -e ${OPENSSL_VANILLA}/${i} ] | |
then | |
echo "${OPENSSL_VANILLA}/${i} is missing" | |
exit 1 | |
fi | |
done | |
for i in ${files[@]}; do | |
rm ${OPENSSL}/${i} | |
ln -s ${OPENSSL_VANILLA}/${i} ${OPENSSL}/${i} | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment