mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-26 19:08:23 +01:00
make scripts executable
This commit is contained in:
parent
31b6768882
commit
f5ffae1cb4
@ -41,6 +41,6 @@ EXPOSE $PORT/udp $RCON_PORT/tcp
|
|||||||
|
|
||||||
COPY files/ /
|
COPY files/ /
|
||||||
|
|
||||||
USER $USER
|
#USER $USER
|
||||||
|
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
|
8
0.17/files/docker-entrypoint.sh
Normal file → Executable file
8
0.17/files/docker-entrypoint.sh
Normal file → Executable file
@ -3,6 +3,8 @@ set -e
|
|||||||
|
|
||||||
id
|
id
|
||||||
|
|
||||||
|
FACTORIO_VOL=/factorio
|
||||||
|
mkdir -p $FACTORIO_VOL
|
||||||
mkdir -p $SAVES
|
mkdir -p $SAVES
|
||||||
mkdir -p $CONFIG
|
mkdir -p $CONFIG
|
||||||
mkdir -p $MODS
|
mkdir -p $MODS
|
||||||
@ -36,7 +38,11 @@ if ! find -L $SAVES -iname \*.zip -mindepth 1 -print | grep -q .; then
|
|||||||
--map-settings $CONFIG/map-settings.json
|
--map-settings $CONFIG/map-settings.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec /opt/factorio/bin/x64/factorio \
|
if [ "$(id -u)" = '0' ]; then
|
||||||
|
chown -R factorio:factorio $FACTORIO_VOL
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec gosu factorio /opt/factorio/bin/x64/factorio \
|
||||||
--port $PORT \
|
--port $PORT \
|
||||||
--start-server-load-latest \
|
--start-server-load-latest \
|
||||||
--server-settings $CONFIG/server-settings.json \
|
--server-settings $CONFIG/server-settings.json \
|
||||||
|
0
0.17/files/scenario.sh
Normal file → Executable file
0
0.17/files/scenario.sh
Normal file → Executable file
0
0.17/files/scenario2map.sh
Normal file → Executable file
0
0.17/files/scenario2map.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user