mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
* fix(Docker): Fix entrypoint permissions * use entrypoint.sh as an argument to bash * attempt to use more specified filepaths
23 lines
580 B
Bash
23 lines
580 B
Bash
#!/usr/bin/env 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 "$@"
|