Commit 2758be8d authored by Ignacio's avatar Ignacio
Browse files

Merge branch 'dev' into 'master'

Cambia sync por cp

See merge request redmic-project/gis/geoserver!12
parents e758b16a 8b6678b8
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2,8 +2,6 @@ version: '3.5'

services:
  geoserver:
    ports:
      - ${GEOSERVER_PORT}
    environment:
      - SWARM_MODE=true
    networks:
+4 −2
Original line number Diff line number Diff line
@@ -4,8 +4,10 @@ set -e

FILENAME="cluster"

echo "Synchronizing ${GEOSERVER_DATA_DIR}"
rsync -vrt ${GEOSERVER_HOME}/data_dir ${GEOSERVER_DATA_DIR}
if [ -z "$(ls -A ${GEOSERVER_DATA_DIR})" ]; then
	echo "Copy data_dir"
	cp -r ${GEOSERVER_HOME}/data_dir/* ${GEOSERVER_DATA_DIR}
fi

if [ -z ${BROKER_SERVICE_NAME} ]; then
    >&2 echo "Environment variable BROKER_SERVICE_NAME unset. You MUST set it to a service name."