боты русифицированы
This commit is contained in:
@@ -162,10 +162,16 @@ set -a
|
||||
source "$ENV_FILE"
|
||||
set +a
|
||||
|
||||
PLAYERBOTS_RUSSIAN_NAMES="${ACORE_PLAYERBOTS_RUSSIAN_NAMES:-1}"
|
||||
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
require_docker
|
||||
|
||||
if ! [[ "$PLAYERBOTS_RUSSIAN_NAMES" =~ ^[01]$ ]]; then
|
||||
die "ACORE_PLAYERBOTS_RUSSIAN_NAMES must be 0 or 1, got: $PLAYERBOTS_RUSSIAN_NAMES"
|
||||
fi
|
||||
|
||||
if [[ $EUID -eq 0 ]]; then
|
||||
apply_sysctl
|
||||
else
|
||||
@@ -192,12 +198,24 @@ if ! wait_for_healthy "ac-database" 180; then
|
||||
die "ac-database did not become healthy"
|
||||
fi
|
||||
|
||||
if [[ "$PLAYERBOTS_RUSSIAN_NAMES" == "1" ]]; then
|
||||
log "stopping worldserver before playerbot localization"
|
||||
$COMPOSE stop ac-worldserver
|
||||
fi
|
||||
|
||||
log "running database import"
|
||||
run_one_shot_service "ac-db-import" "ac-db-import"
|
||||
|
||||
log "importing custom SQL"
|
||||
bash "$ROOT_DIR/import-custom-sql.sh"
|
||||
|
||||
if [[ "$PLAYERBOTS_RUSSIAN_NAMES" == "1" ]]; then
|
||||
log "localizing playerbot names, guilds, and chat texts"
|
||||
bash "$ROOT_DIR/localize-playerbots-ru.sh" --apply
|
||||
else
|
||||
log "playerbot Russian localization disabled"
|
||||
fi
|
||||
|
||||
log "applying post-database module setup"
|
||||
bash "$ROOT_DIR/setup-modules.sh"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user