Skip to content

Commit

Permalink
fix if/grep statement
Browse files Browse the repository at this point in the history
  • Loading branch information
bleepbop committed Jun 23, 2023
1 parent a52d3e5 commit 34ca5ff
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,11 @@ fi

WORKDIR /usr/src/app

#RUN if [ grep "\- emu" /usr/src/app/conf/local.yml ]; then \
# apt-get install zlib1g; \
# ./usr/src/app/plugins/emu/download_payloads.sh; \
#fi
RUN apt-get -y install zlib1g unzip;
RUN pip3 install pyminizip;
RUN ./plugins/emu/download_payloads.sh;
RUN if [ $(grep -c "\- emu" conf/local.yml) ]; then \
apt-get -y install zlib1g unzip; \
pip3 install -r ./plugins/emu/requirements.txt; \
./plugins/emu/download_payloads.sh; \
fi

# Default HTTP port for web interface and agent beacons over HTTP
EXPOSE 8888
Expand Down

0 comments on commit 34ca5ff

Please sign in to comment.