Skip to content

Commit

Permalink
Merge pull request #286 from bhumi46/develop
Browse files Browse the repository at this point in the history
[MOSIP-37447] updated install.sh script for mosipid check
  • Loading branch information
ckm007 authored Nov 19, 2024
2 parents 301be78 + 6492822 commit 1f8f680
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions partner-onboarder/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,34 @@ function installing_onboarder() {
fi
done

while true; do
read -p "Is esignet deployed with default plugins? (y/n): " esignet_ans
if [[ "$esignet_ans" == "y" || "$esignet_ans" == "Y" ]]; then
while true; do
read -p "Please confirm with y for MOSIP ID plugins (y/n): " mosipid_ans
if [[ "$mosipid_ans" == "y" || "$mosipid_ans" == "Y" ]]; then
mosipid="true"
MOSIPID_OPTION="--set onboarding.variables.mosipid=$mosipid"
break
elif [[ "$mosipid_ans" == "n" || "$mosipid_ans" == "N" ]]; then
mosipid="false"
MOSIPID_OPTION="--set onboarding.variables.mosipid=$mosipid"
break
else
echo "Invalid response for MOSIP ID plugins. Please respond with y or n."
fi
done
break
elif [[ "$esignet_ans" == "n" || "$esignet_ans" == "N" ]]; then
mosipid="false"
MOSIPID_OPTION="--set onboarding.variables.mosipid=$mosipid"
break
else
echo "Invalid response for esignet. Please respond with y or n."
fi
done
echo "Helm option: $MOSIPID_OPTION"

echo "Istio label"
kubectl label ns $NS istio-injection=disabled --overwrite
helm repo update
Expand All @@ -105,6 +133,7 @@ function installing_onboarder() {
helm -n $NS install esignet-mock-rp-onboarder mosip/partner-onboarder \
$NFS_OPTION \
$S3_OPTION \
$MOSIPID_OPTION \
--set onboarding.variables.push_reports_to_s3=$push_reports_to_s3 \
--set extraEnvVarsCM[0]=esignet-global \
--set extraEnvVarsCM[1]=keycloak-env-vars \
Expand Down

0 comments on commit 1f8f680

Please sign in to comment.