Explorar el Código

Поправил не рабочий sed

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

+ 1 - 1
docker-entrypoint.sh

@@ -11,7 +11,7 @@ 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
+sed -i "s/192\.168\.201\.67\:27017/${DB_CLUSTER}/" /etc/web-laboratory-admin/application.conf
 
 sed -i "s/192\.168\.201\.13/$(nslookup ${HOSTNAME}.${APPNET} | grep Address | tail -n1 | cut -f2 -d' ')/" /etc/web-laboratory-admin/application.conf