Refactoring local openssl function line

This commit is contained in:
danilapog 2022-07-04 12:17:38 +03:00
parent 7f9253f1c7
commit 56ef144c16

View file

@ -169,16 +169,11 @@ deprecated_var() {
update_local_ssl() { update_local_ssl() {
if [[ -n ${NODE_OPTIONS} ]]; then if [[ -n ${NODE_OPTIONS} ]]; then
if [[ ${NODE_OPTIONS} == "--use-openssl-ca" ]]; then
RESULT=$(cat ${LOCAL_SSL_DIR}/ds-converter.conf | grep -e '--use-openssl-ca')
if [[ -z ${RESULT} ]]; then
for file in ${LOCAL_SSL_DIR}/ds-converter.conf ${LOCAL_SSL_DIR}/ds-docservice.conf for file in ${LOCAL_SSL_DIR}/ds-converter.conf ${LOCAL_SSL_DIR}/ds-docservice.conf
do do
sed -i "s/environment.*/&\,NODE_OPTIONS=${NODE_OPTIONS}/g" $file sed -i "s/environment.*/&\,NODE_OPTIONS=${NODE_OPTIONS}/g" $file
done done
fi fi
fi
fi
} }