rad-docker/start.sh

40 lines
655 B
Bash
Raw Normal View History

2021-05-08 21:40:32 +00:00
#!/usr/bin/env bash
set -e
toLinkedFiles=(
LaunchServer.sh
README-howto.txt
forge-1.12.2-14.23.5.2854.jar
libraries
llibrary
minecraft_server.1.12.2.jar
mods
scripts
structures
)
toCoptFiles=(
config
options.txt
server.properties
)
chmod +x LaunchServer.sh
for linkedFile in "${toLinkedFiles[@]}"
do
2021-05-09 16:48:22 +00:00
[[ -f /data/$linkedFile || -d /data/$linkedFile ]] || ln -s /minecraft/$linkedFile /data/$linkedFile
2021-05-08 21:40:32 +00:00
done
for copyedFile in "${toCoptFiles[@]}"
do
[ -f /data/$copyedFile ] || cp -r /minecraft/$copyedFile /data/$copyedFile
done
echo "eula=true" > /data/eula.txt
cd /data
./LaunchServer.sh