Skip to content

Copy velocircon rcon.yml only if config not exist#290

Merged
itzg merged 1 commit intoitzg:masterfrom
code-lime:master
Feb 27, 2026
Merged

Copy velocircon rcon.yml only if config not exist#290
itzg merged 1 commit intoitzg:masterfrom
code-lime:master

Conversation

@code-lime
Copy link
Copy Markdown
Contributor

The logic is taken from the code as bungeecord

# Download orblazer/bungee-rcon plugin
elif [[ "${family}" == "bungeecord" ]] || isTrue "${APPLY_BUNGEECORD_RCON:-false}"; then
if isTrue "${ENABLE_RCON}" && [[ ! -e $BUNGEE_HOME/plugins/${RCON_JAR_URL##*/} ]]; then
log "Downloading Bungee rcon plugin"
mkdir -p $BUNGEE_HOME/plugins/bungee-rcon
if ! mc-image-helper get -o "$BUNGEE_HOME/plugins/${RCON_JAR_URL##*/}" "$RCON_JAR_URL"; then
echo "ERROR: failed to download from $RCON_JAR_URL to /tmp/${RCON_JAR_URL##*/}"
exit 2
fi
configFile="$BUNGEE_HOME/plugins/bungee-rcon/config.yml"
if [ ! -e "$configFile" ]; then
log "Copy Bungee rcon configuration"
# shellcheck disable=SC2016
sed \
-e 's#${PORT}#'"$RCON_PORT"'#g' \
-e 's#${PASSWORD}#'"$RCON_PASSWORD"'#g' \
/templates/rcon-config.yml > "$configFile"
fi
fi
fi

Copy link
Copy Markdown
Owner

@itzg itzg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, thanks.

@itzg itzg changed the title copy velocity rcon.yml only if config not exist Copy velocircon rcon.yml only if config not exist Feb 27, 2026
@itzg itzg merged commit ebf28a1 into itzg:master Feb 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants