mirror of
https://github.com/hermensbas/azerothcore_installer.git
synced 2026-01-30 07:43:47 +00:00
Update update_realm_name.sh
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
|
|
||||||
source ${ROOT_DIR}/../variables.sh
|
|
||||||
|
|
||||||
|
#param 1
|
||||||
REALM_NAME=$1;
|
REALM_NAME=$1;
|
||||||
if [ -z "$REALM_NAME" ]
|
if [ -z "$REALM_NAME" ]
|
||||||
then
|
then
|
||||||
@@ -9,9 +8,8 @@ then
|
|||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
sed -e "s/{{REALM_NAME}}/$REALM_NAME/g" \
|
sed -e "s/{{REALM_NAME}}/$REALM_NAME/g" \
|
||||||
"${ROOT_DIR}/../sql/update_realm_name.sql" > "/tmp/update_realm_name.sql"
|
"${ROOT_DIR}/sql/update_realm_name.sql" > "/tmp/update_realm_name.sql"
|
||||||
sudo mysql -u root --database="acore_characters" < /tmp/update_realm_name.sql
|
sudo mysql -u root --database="acore_characters" < /tmp/update_realm_name.sql
|
||||||
|
|
||||||
echo "Server realm name updated..."
|
echo "Server realm name updated..."
|
||||||
|
|||||||
Reference in New Issue
Block a user