mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
* refactor(Docker): remove prod containers * workflows: use buildx * properly set tags * comment in Dockerfile * set docker build context * minor CI changes * CI: docker build args shouldnt have quotes * CI: using matrix and caching is too much work * CI: I hate yaml * CI: It was a typo * CI: extra build removed * CI: appease the linter * fixup! CI: appease the linter * fixup! CI: appease the linter * apps: docker: remove extraneous files
23 lines
572 B
Bash
23 lines
572 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Copy all default config files to env/dist/etc if they don't already exist
|
|
# -r == recursive
|
|
# -n == no clobber (don't overwrite)
|
|
# -v == be verbose
|
|
cp -rnv /azerothcore/env/ref/etc/* /azerothcore/env/dist/etc
|
|
|
|
CONF="/azerothcore/env/dist/etc/$ACORE_COMPONENT.conf"
|
|
CONF_DIST="/azerothcore/env/dist/etc/$ACORE_COMPONENT.conf.dist"
|
|
|
|
# Copy the "dist" file to the "conf" if the conf doesn't already exist
|
|
if [[ -f "$CONF_DIST" ]]; then
|
|
cp -vn "$CONF_DIST" "$CONF"
|
|
else
|
|
touch "$CONF"
|
|
fi
|
|
|
|
echo "Starting $ACORE_COMPONENT..."
|
|
|
|
exec "$@"
|