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