Cleanup crowdsec folder after install.

Uninstall gettext since its not required after the crowdsec install.
This commit is contained in:
Brian Munro
2022-03-15 06:31:46 +02:00
parent f819b8a87a
commit 48821ea692
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -88,8 +88,8 @@ RUN apt-get update \
&& apt-get install -y gcc make socat git \
&& /tmp/install-lua \
&& /tmp/install-openresty \
&& /tmp/install-crowdsec_openresty_bouncer \
&& apt-get remove -y make gcc git wget \
&& /tmp/install-crowdsec_openresty_bouncer \
&& apt-get remove -y make gcc git wget gettext \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
@@ -16,5 +16,6 @@ cd /tmp/crowdsec
bash ./install.sh --NGINX_CONF_DIR=/etc/nginx/conf.d --LIB_PATH=/etc/nginx/lualib --CONFIG_PATH=/defaults/crowdsec --DATA_PATH=/defaults/crowdsec --docker
sed -i 's|ENABLED=.*|ENABLED=false|' /defaults/crowdsec/crowdsec-openresty-bouncer.conf
rm /tmp/crowdsec
echo -e "${BLUE} ${GREEN}OpenResty plugins install completed${RESET}"