mirror of
https://github.com/hermensbas/azerothcore_installer.git
synced 2026-01-13 00:28:33 +00:00
11 lines
439 B
Bash
Executable File
11 lines
439 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -z "$1" ]
|
|
then
|
|
echo "Parameter is null, first paramter 'character name' should not be empty";
|
|
exit 1;
|
|
fi
|
|
|
|
# find character and account id by name, mainly used for configuring the ah-bot mod.
|
|
sudo mysql -u root --database="acore_auth" -e "select acc.id as accountId, ch.guid as characterId from acore_auth.account as acc inner join acore_characters.characters as ch where acc.id = ch.account and acc.username = '${1}';"
|