-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enforce right version of forge
- Loading branch information
Showing
7 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ ! -d ${MINECRAFT_MODS_DIR} ]; then | ||
echo "> creating mods dir" | ||
mkdir -p ${MINECRAFT_MODS_DIR} | ||
fi |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
declare -x MINECRAFT_MODS_DIR | ||
[[ -z "${MINECRAFT_MODS_DIR}" ]] && MINECRAFT_MODS_DIR="${MINECRAFT_GAME_DIR}/mods" | ||
|
||
true |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
source /usr/bin/entrypoint | ||
|
||
for FILE in $(find /etc/container.d -type f -iname \*.sh | sort); do | ||
source ${FILE} | ||
done | ||
|
||
pushd ${MINECRAFT_GAME_DIR} >/dev/null | ||
STARTCMD="su-exec minecraft java" | ||
|
||
if [ -n "${MINECRAFT_MAXHEAP}" ]; then | ||
STARTCMD="${STARTCMD} -Xmx${MINECRAFT_MAXHEAP}" | ||
fi | ||
|
||
if [ -n "${MINECRAFT_MINHEAP}" ]; then | ||
STARTCMD="${STARTCMD} -Xms${MINECRAFT_MINHEAP}" | ||
fi | ||
|
||
echo "> starting minecraft server" | ||
exec ${STARTCMD} ${JAVA_OPTS} @libraries/net/minecraftforge/forge/${MINECRAFT_VERSION}-${FORGE_VERSION}/unix_args.txt ${MINECRAFT_OPTS} | ||
popd >/dev/null |