Skip to content

Commit

Permalink
touch server.properties when eula file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7d8 committed Sep 14, 2024
1 parent 85201fb commit d369660
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions java/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ if [ -d "libraries/net/neoforged/forge" ] && [ ! -f "$SERVER_JARFILE" ]; then
fi

# server.properties
if [ -f "eula.txt" ]; then
# create server.properties
touch server.properties
fi

if [ -f "server.properties" ]; then
# set server-ip to 0.0.0.0
if grep -q "server-ip=" server.properties; then
Expand Down

0 comments on commit d369660

Please sign in to comment.