Skip to content

Commit

Permalink
fix malwarescanner typo
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7d8 committed Jul 29, 2024
1 parent aaa03fa commit 412fc85
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 34 deletions.
8 changes: 4 additions & 4 deletions java/11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ LABEL author="Robert Jansen" maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/mcjars/pterodactyl-yolks"
LABEL org.opencontainers.image.licenses=MIT

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

RUN rm -rf /usr/bin/dd \
&& rm -rf /usr/bin/fallocate \
&& rm -rf /usr/bin/truncate \
Expand All @@ -17,6 +13,10 @@ RUN rm -rf /usr/bin/dd \
RUN curl -sSL https://github.com/OpticFusion1/MCAntiMalware/releases/latest/download/MCAntiMalware.jar \
-o /MCAntiMalware.jar

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
Expand Down
8 changes: 4 additions & 4 deletions java/16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ LABEL author="Robert Jansen" maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/mcjars/pterodactyl-yolks"
LABEL org.opencontainers.image.licenses=MIT

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

RUN rm -rf /usr/bin/dd \
&& rm -rf /usr/bin/fallocate \
&& rm -rf /usr/bin/truncate \
Expand All @@ -17,6 +13,10 @@ RUN rm -rf /usr/bin/dd \
RUN curl -sSL https://github.com/OpticFusion1/MCAntiMalware/releases/latest/download/MCAntiMalware.jar \
-o /MCAntiMalware.jar

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
Expand Down
8 changes: 4 additions & 4 deletions java/17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ LABEL author="Robert Jansen" maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/mcjars/pterodactyl-yolks"
LABEL org.opencontainers.image.licenses=MIT

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

RUN rm -rf /usr/bin/dd \
&& rm -rf /usr/bin/fallocate \
&& rm -rf /usr/bin/truncate \
Expand All @@ -17,6 +13,10 @@ RUN rm -rf /usr/bin/dd \
RUN curl -sSL https://github.com/OpticFusion1/MCAntiMalware/releases/latest/download/MCAntiMalware.jar \
-o /MCAntiMalware.jar

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
Expand Down
8 changes: 4 additions & 4 deletions java/18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ LABEL author="Robert Jansen" maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/mcjars/pterodactyl-yolks"
LABEL org.opencontainers.image.licenses=MIT

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

RUN rm -rf /usr/bin/dd \
&& rm -rf /usr/bin/fallocate \
&& rm -rf /usr/bin/truncate \
Expand All @@ -17,6 +13,10 @@ RUN rm -rf /usr/bin/dd \
RUN curl -sSL https://github.com/OpticFusion1/MCAntiMalware/releases/latest/download/MCAntiMalware.jar \
-o /MCAntiMalware.jar

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
Expand Down
8 changes: 4 additions & 4 deletions java/19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ LABEL author="Robert Jansen" maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/mcjars/pterodactyl-yolks"
LABEL org.opencontainers.image.licenses=MIT

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

RUN rm -rf /usr/bin/dd \
&& rm -rf /usr/bin/fallocate \
&& rm -rf /usr/bin/truncate \
Expand All @@ -17,6 +13,10 @@ RUN rm -rf /usr/bin/dd \
RUN curl -sSL https://github.com/OpticFusion1/MCAntiMalware/releases/latest/download/MCAntiMalware.jar \
-o /MCAntiMalware.jar

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
Expand Down
8 changes: 4 additions & 4 deletions java/21/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ LABEL author="Robert Jansen" maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/mcjars/pterodactyl-yolks"
LABEL org.opencontainers.image.licenses=MIT

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

RUN rm -rf /usr/bin/dd \
&& rm -rf /usr/bin/fallocate \
&& rm -rf /usr/bin/truncate \
Expand All @@ -17,6 +13,10 @@ RUN rm -rf /usr/bin/dd \
RUN curl -sSL https://github.com/OpticFusion1/MCAntiMalware/releases/latest/download/MCAntiMalware.jar \
-o /MCAntiMalware.jar

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
Expand Down
8 changes: 4 additions & 4 deletions java/22/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ LABEL author="Robert Jansen" maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/mcjars/pterodactyl-yolks"
LABEL org.opencontainers.image.licenses=MIT

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

RUN rm -rf /usr/bin/dd \
&& rm -rf /usr/bin/fallocate \
&& rm -rf /usr/bin/truncate \
Expand All @@ -17,6 +13,10 @@ RUN rm -rf /usr/bin/dd \
RUN curl -sSL https://github.com/OpticFusion1/MCAntiMalware/releases/latest/download/MCAntiMalware.jar \
-o /MCAntiMalware.jar

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
Expand Down
8 changes: 4 additions & 4 deletions java/8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ LABEL author="Robert Jansen" maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/mcjars/pterodactyl-yolks"
LABEL org.opencontainers.image.licenses=MIT

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

RUN rm -rf /usr/bin/dd \
&& rm -rf /usr/bin/fallocate \
&& rm -rf /usr/bin/truncate \
Expand All @@ -17,6 +13,10 @@ RUN rm -rf /usr/bin/dd \
RUN curl -sSL https://github.com/OpticFusion1/MCAntiMalware/releases/latest/download/MCAntiMalware.jar \
-o /MCAntiMalware.jar

RUN apt-get update -y \
&& apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
Expand Down
4 changes: 2 additions & 2 deletions java/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export INTERNAL_IP

# check if LOG_PREFIX is set
if [ -z "$LOG_PREFIX" ]; then
LOG_PREFIX="\033[1m\033[33mcontainer@pterodactyl~ \033[0m"
LOG_PREFIX="\033[1m\033[33mcontainer@pterodactyl~\033[0m"
fi

# Switch to the container's working directory
Expand All @@ -23,7 +23,7 @@ java -version
if [[ "$MALWARE_SCAN" == "1" ]]; then
echo -e "${LOG_PREFIX} Scanning for malware... (This may take a while)"

java -jar /MCAntiMalware.jar --scanDirectory
java -jar /MCAntiMalware.jar --scanDirectory .

if [ $? -eq 0 ]; then
echo -e "${LOG_PREFIX} Malware scan has passed"
Expand Down

0 comments on commit 412fc85

Please sign in to comment.