Files
azerothcore_installer/script/update_realm_ip.sh
2024-09-14 19:31:49 +02:00

19 lines
564 B
Bash
Executable File

#!/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 -p --database="acore_characters" < /tmp/update_realm_ip.sql
echo " "
echo "###########################################################################################"
echo "Server realm IP updated: ${REALM_IP}"
echo "###########################################################################################"