Explorar el Código

Дописал выход при ошибке

OBT-SYSADM\tomishinets hace 6 años
padre
commit
103015a83e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      docker-entrypoint.sh

+ 1 - 0
docker-entrypoint.sh

@@ -9,6 +9,7 @@ while [ $? -ne 0 ]; do
 done
 
 /opt/updatedb.sh
+if [[ $? -ne 0 ]]; then echo "An error occurred while updating the database ${MONGODB}"; exit 1;fi
 
 sed -i "s/192.168.201.12:27017/${DB_CLUSTER}/" /etc/web-laboratory-admin/application.conf