Pārlūkot izejas kodu

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

OBT-SYSADM\tomishinets 6 gadi atpakaļ
vecāks
revīzija
b087fd52ba
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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