From 06305c98850884ebe9eee202527275550b587d3d Mon Sep 17 00:00:00 2001 From: bash <31279994+hermensbas@users.noreply.github.com> Date: Mon, 12 Aug 2024 21:05:57 +0200 Subject: [PATCH] Update update_realm_ip.sh --- helper/update_realm_ip.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/helper/update_realm_ip.sh b/helper/update_realm_ip.sh index 4789f76..6c476ab 100755 --- a/helper/update_realm_ip.sh +++ b/helper/update_realm_ip.sh @@ -1,7 +1,6 @@ #!/bin/bash -ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)" -source ${ROOT_DIR}/../variables.sh +# param 1 REALM_IP=$1; if [ -z "$REALM_IP" ] then @@ -9,9 +8,8 @@ then 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..." \ No newline at end of file +echo "Server realm IP updated..."