diff --git a/Docker/graylog/Dockerfile b/Docker/graylog/Dockerfile index 04209f9..d9a3929 100644 --- a/Docker/graylog/Dockerfile +++ b/Docker/graylog/Dockerfile @@ -1,7 +1,6 @@ FROM graylog/graylog:3.1 # Probably a bad idea, but it works for now USER root -ENV GRAYLOG_PLUGIN_DIR=/etc/graylog/server/ RUN mkdir -pv /etc/graylog/server/ COPY ./getGeo.sh /etc/graylog/server/ RUN chmod +x /etc/graylog/server/getGeo.sh && /etc/graylog/server/getGeo.sh diff --git a/Docker/graylog/getGeo.sh b/Docker/graylog/getGeo.sh index c0dc234..0f07d71 100644 --- a/Docker/graylog/getGeo.sh +++ b/Docker/graylog/getGeo.sh @@ -1,2 +1,2 @@ -curl --output ${GRAYLOG_PLUGIN_DIR}/mm.tar.gz https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz -tar zxvf ${GRAYLOG_PLUGIN_DIR}/mm.tar.gz -C ${GRAYLOG_PLUGIN_DIR} --strip-components=1 +curl --output /etc/graylog/server/mm.tar.gz https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz +tar zxvf /etc/graylog/server/mm.tar.gz -C /etc/graylog/server/ --strip-components=1