This commit is contained in:
bash
2024-08-12 19:38:48 +00:00
parent d6bd536d0f
commit e677c95d36
15 changed files with 94 additions and 0 deletions

15
scripts/update_realm_ip.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# param 1
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..."