File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
docker/mongodb-kubernetes-init-database/content Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -206,10 +206,10 @@ else
206
206
ln -sf " ${MONGOD_ROOT} /bin/mongod" ${mdb_downloads_dir} /mongod/bin/mongod
207
207
ln -sf " ${MONGOD_ROOT} /bin/mongos" ${mdb_downloads_dir} /mongod/bin/mongos
208
208
209
- ln -sf " /tools/mongodump " ${mdb_downloads_dir} /mongod/bin/ mongodump
210
- ln -sf " /tools/mongorestore " ${mdb_downloads_dir} /mongod/bin/mongorestore
211
- ln -sf " /tools/mongoexport " ${mdb_downloads_dir} /mongod/bin/mongoexport
212
- ln -sf " /tools/mongoimport " ${mdb_downloads_dir} /mongod/bin/mongoimport
209
+ for tool in mongoimport mongodump mongorestore mongoexport ; do
210
+ [ -e " /tools/${tool} " ] || { echo " /tools/ ${tool} not found " ; exit 1 ; }
211
+ ln -sf " /tools/${tool} " ${mdb_downloads_dir} /mongod/bin/${tool}
212
+ done
213
213
else
214
214
echo " Mongod PID not found within the specified time."
215
215
exit 1
You can’t perform that action at this time.
0 commit comments