Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,11 @@ RUN wget -q https://raw.githubusercontent.com/nikooo777/ckSurf/master/csgo/addon
WORKDIR /home/csgo

COPY databases.cfg /home/csgo/plugins/addons/sourcemod/configs/
COPY mapsync.sh /home/csgo/
COPY mapsynckzt.sh /home/csgo/
COPY entrypoint.sh /home/csgo/

USER root

RUN chmod +x /home/csgo/entrypoint.sh
RUN chmod +x /home/csgo/mapsync.sh
RUN chmod +x /home/csgo/mapsynckzt.sh

USER csgo

Expand Down
34 changes: 13 additions & 21 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,6 @@ installKZTimer() {
echo '> Done'
}

#downloadMaps() {
# echo "> Downloading maps ..."
# cd /home/csgo/server/csgo/maps/workshop
# /bin/bash /home/csgo/mapsync.sh
# cd /home/csgo/server/csgo
#}

#downloadMapsKZT() {
# echo "> Downloading maps ..."
# cd /home/csgo/server/csgo/maps/workshop
# /bin/bash /home/csgo/mapsynckzt.sh
# cd /home/csgo/server/csgo
#}

installServer() {
echo '> Installing server ...'

Expand Down Expand Up @@ -176,13 +162,19 @@ else
installGOKZ
fi

#if [ "$DLMAPS" == "yes" ]; then
# if [ "$TIMER" == "kztimer" ]; then
# downloadMapsKZT
# else
# downloadMaps
# fi
#fi
if [ "$DLMAPS" == "yes" ]; then
echo '> Downloading Maps ... (this may take a while)'
if [ "$TIMER" == "kztimer" ]; then
maplist=$(curl -s https://kzmaps.tangoworldwide.net/mapcycles/kztimer.txt)
else
maplist=$(curl -s https://kzmaps.tangoworldwide.net/mapcycles/gokz.txt)
fi

for i in $maplist; do
wget -q -P $CSGO_DIR/maps https://kzmaps.tangoworldwide.net/bsps/$i.bsp
done
echo -e '\n> Done'
fi

if [ "$MAPCHOOSER" == "yes" ]; then
mv $CSGO_DIR/addons/sourcemod/plugins/disabled/mapchooser.smx $CSGO_DIR/addons/sourcemod/plugins/
Expand Down
59 changes: 0 additions & 59 deletions mapsync.sh

This file was deleted.

59 changes: 0 additions & 59 deletions mapsynckzt.sh

This file was deleted.