Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #2441 & #2442 #2445

Merged
merged 9 commits into from Jul 23, 2020
19 changes: 0 additions & 19 deletions usr/share/rear/verify/CDM/default/400_verify_cdm.sh

This file was deleted.

Expand Up @@ -25,12 +25,18 @@ while true; do
done

CDM_SUNOS_TAR=rubrik-agent-sunos5.10.sparc.tar.gz
CDM_SOLARIS_TAR=rubrik-agent-solaris.sparc.tar.gz
CDM_TAR_FILE=$CDM_SUNOS_TAR
cd /tmp
jsmeix marked this conversation as resolved.
Show resolved Hide resolved
/usr/bin/curl $v -kLOJ https://${CDM_CLUSTER_IP}/connector/${CDM_SUNOS_TAR}
StopIfError "Could not download https://${CDM_CLUSTER_IP}/connector/${CDM_SUNOS_TAR}"
/usr/bin/curl $v -fskLOJ https://${CDM_CLUSTER_IP}/connector/${CDM_TAR_FILE}
jsmeix marked this conversation as resolved.
Show resolved Hide resolved
if [[ $? -gt 0 ]]; then
CDM_TAR_FILE=$CDM_SOLARIS_TAR
/usr/bin/curl $v -fkLOJ https://${CDM_CLUSTER_IP}/connector/${CDM_TAR_FILE}
jsmeix marked this conversation as resolved.
Show resolved Hide resolved
fi
StopIfError "Could not download cluster certificate extraction."
jsmeix marked this conversation as resolved.
Show resolved Hide resolved

/usr/bin/tar $v -xzf $CDM_SUNOS_TAR
StopIfError "Could not extract $CDM_SUNOS_TAR"
/usr/bin/tar $v -xzf $CDM_TAR_FILE
jsmeix marked this conversation as resolved.
Show resolved Hide resolved
StopIfError "Could not extract $CDM_TAR_FILE"

CDM_CERT_FILE=$(find ./ -name "rubrik.crt")
mv $v ${CDM_KEYS_DIR}/rubrik.crt ${CDM_KEYS_DIR}/rubrik.crt.orig
Expand All @@ -39,5 +45,8 @@ StopIfError "Could not copy replica CDM cluster certificate"

/usr/bin/chmod $v 600 ${CDM_KEYS_DIR}/rubrik.crt

mv $v ${CDM_KEYS_DIR}/agent.crt ${CDM_KEYS_DIR}/agent.crt.orig
mv $v ${CDM_KEYS_DIR}/agent.pem ${CDM_KEYS_DIR}/agent.pem.orig
/etc/rubrik/rba-keygen.sh
jsmeix marked this conversation as resolved.
Show resolved Hide resolved

LogPrint "Replica Rubrik (CDM) cluster certificate installed."