Skip to content

Commit

Permalink
Merge pull request #7 from henkall/henkall-update
Browse files Browse the repository at this point in the history
Henkall update
  • Loading branch information
henkall authored Jun 25, 2020
2 parents 30e698e + bd51bd4 commit e7a6aab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM ubuntu
ENV LANG=da_DK.UTF-8
ENV LANGUAGE=da_DK

# Running options to COD4 server
ENV READY=""
Expand All @@ -11,19 +9,16 @@ ENV EXTRA=""
ENV SERVERTYPE=""
ENV EXECFILE=""

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && \
apt-get install -y libstdc++6 build-essential gcc-multilib g++-multilib unzip curl nano
apt-get install -y gcc-multilib g++-multilib unzip curl

RUN groupadd -r cod4 && useradd --no-log-init -r -g cod4 cod4
ADD cod4 /home/cod4/
RUN chown -R cod4:cod4 /home/cod4

USER cod4
WORKDIR /home/cod4

RUN chmod +x script.sh
ENTRYPOINT ["/home/cod4/script.sh"]

VOLUME ["/home/cod4/gamefiles/"]
VOLUME ["/home/cod4/gamefiles/"]
2 changes: 0 additions & 2 deletions cod4/script.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#!/usr/bin/env bash
if [ "$(ls -A gamefiles/main)" ]; then
echo "Main is Good"
chmod 777 gamefiles/main
echo "Testing if xbase_00.iwd is in main"
if [[ ! -f gamefiles/main/xbase_00.iwd ]]; then
echo "Xbase_00.iwd not found copying it now"
cp xbase_00.iwd gamefiles/main/
echo "Copying xbase_00.iwd done"
else
echo "Xbase_00.iwd is Good"
fi
Expand Down

0 comments on commit e7a6aab

Please sign in to comment.