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
6 changes: 5 additions & 1 deletion scripts/start-configuration
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ if [[ $MODPACK_PLATFORM && $TYPE && $TYPE != VANILLA ]]; then
fi

case "${TYPE^^}" in
AUTO_CURSEFORGE|MODRINTH|CURSEFORGE|FTB|FTBA|GTNH)
AUTO_CURSEFORGE|MODRINTH|CURSEFORGE|FTB|FTBA|GTNH|UNSUP)
MODPACK_PLATFORM="$TYPE"
;;
esac
Expand All @@ -216,6 +216,10 @@ if [[ $MODPACK_PLATFORM ]]; then
exec "$(dirname "$0")/start-deployGTNH" "$@"
;;

UNSUP)
exec "$(dirname "$0")/start-deployUnsup" "$@"
;;

*)
logError "Invalid MODPACK_PLATFORM: '$MODPACK_PLATFORM'"
exit 1
Expand Down
28 changes: 28 additions & 0 deletions scripts/start-deployUnsup
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

# shellcheck source=start-utils
. "$(dirname "$0")/start-utils"

if [ ! -f "/data/unsup.ini" ] && [ ! ${BOOTSTRAP_URL} ]; then
log "unsup.ini file is missing, please add one to the /data directory or set the BOOTSTRAP_URL variable"
exit 2
fi

log "Downloading unsup jarfile"
if ! unsupRunner=$(mc-image-helper maven-download \
-r https://repo.sleeping.town \
-g com.unascribed -a unsup \
--skip-existing --skip-up-to-date -v ${UNSUP_VERSION:=release}); then
logError "Could not download unsup.jar"
exit 2
fi

java -jar $unsupRunner server

if [ ! "${CUSTOM_SERVER}" ] && [ ! "${CUSTOM_JAR_EXEC}" ]; then
log "Neither CUSTOM_SERVER or CUSTOM_JAR_EXEC are set, the downloaded server files may not be correctly targeted"
fi

export USES_MODS=true

exec "$(dirname "$0")/start-setupWorld" "$@"