mirror of
https://github.com/hermensbas/azerothcore_installer.git
synced 2026-01-13 08:37:17 +00:00
wip
This commit is contained in:
15
script/find_characters.sh
Executable file
15
script/find_characters.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# param 1
|
||||
ACCOUNT_NAME=$1;
|
||||
if [ -z "$ACCOUNT_NAME" ]
|
||||
then
|
||||
echo "First parameter 'ACCOUNT_NAME' is required";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
sed -e "s/{{ACCOUNT_NAME}}/$ACCOUNT_NAME/g" \
|
||||
"${ROOT_DIR}/sql/find_character.sql" > "/tmp/find_character.sql"
|
||||
sudo mysql -u root --database="acore_characters" < /tmp/find_character.sql
|
||||
|
||||
echo "Find character executed..."
|
||||
Reference in New Issue
Block a user