mirror of
https://github.com/hermensbas/azerothcore_installer.git
synced 2026-01-13 00:28:33 +00:00
17 lines
426 B
Bash
Executable File
17 lines
426 B
Bash
Executable File
#!/bin/bash
|
|
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
|
|
source ${ROOT_DIR}/../variables.sh
|
|
|
|
REALM_IP=$1;
|
|
if [ -z "$REALM_IP" ]
|
|
then
|
|
echo "First parameter 'REALM_IP' is required";
|
|
exit 1;
|
|
fi
|
|
|
|
|
|
sed -e "s/{{REALM_IP}}/$REALM_IP/g" \
|
|
"${ROOT_DIR}/../sql/update_realm_ip.sql" > "/tmp/update_realm_ip.sql"
|
|
sudo mysql -u root --database="acore_characters" < /tmp/update_realm_ip.sql
|
|
|
|
echo "Server realm IP updated..." |