Skip to content

Commit 91cdaa0

Browse files
fix: mongoimport codefresh-inc account for dev chart
1 parent fd24439 commit 91cdaa0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

charts/codefresh/files/mongoSeedJobScript.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ mongosh ${MONGODB_ROOT_URI} ${MONGO_URI_EXTRA_PARAMS} --eval "db.getSiblingDB(\"
125125
mongosh ${MONGODB_ROOT_URI} ${MONGO_URI_EXTRA_PARAMS} --eval "db.getSiblingDB(\"codefresh\").changeUserPassword(\"${MONGODB_USER}\",\"${MONGODB_PASSWORD}\")" 2>&1 || true
126126

127127
if [[ $DEVELOPMENT_CHART == "true" ]]; then
128+
mongoimport --uri ${MONGO_URI} ${MONGOIMPORT_EXTRA_PARAMS} --collection idps --type json --legacy --file ${ASSETS_PATH}accounts-dev.json
128129
setSystemAdmin
129130
setPacks
130131
fi

0 commit comments

Comments
 (0)