mirror of
https://github.com/hermensbas/azerothcore_installer.git
synced 2026-02-16 06:46:08 +00:00
testing
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/..
|
||||
source ${ROOT_DIR}/variables.sh
|
||||
|
||||
sudo mysql -u root --database="acore_characters" < ${ROOT_DIR}/sql/clear_auctionhouse.sql
|
||||
|
||||
echo "Auction house items deleted..."
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
|
||||
source ${ROOT_DIR}/../variables.sh
|
||||
|
||||
sudo mysql -u root --database="acore_characters" < ${ROOT_DIR}/../sql/clear_auctionhouse.sql
|
||||
|
||||
echo "Auction house items deleted..."
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/..
|
||||
source ${ROOT_DIR}/variables.sh
|
||||
|
||||
sudo mysql -u root --database="acore_characters" < ${ROOT_DIR}/sql/clear_playerbots.sql
|
||||
|
||||
echo "Playerbots accounts and characters deleted..."
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/
|
||||
source ${ROOT_DIR}/../variables.sh
|
||||
|
||||
sudo mysql -u root --database="acore_characters" < ${ROOT_DIR}/../sql/clear_playerbots.sql
|
||||
|
||||
echo "Playerbots accounts and characters deleted..."
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/..
|
||||
source ${ROOT_DIR}/variables.sh
|
||||
|
||||
ACCOUNT_NAME=$1;
|
||||
if [ -z "$ACCOUNT_NAME" ]
|
||||
then
|
||||
echo "First parameter 'ACCOUNT_NAME' is required";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
sed -e "s/{{ACCOUNT_NAME}}/$ACCOUNT_NAME/g" \
|
||||
"${ROOT_DIR}/sql/find_character.sql" > "/tmp/find_character.sql"
|
||||
sudo mysql -u root --database="acore_characters" < /tmp/find_character.sql
|
||||
|
||||
echo "Find character executed..."
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
|
||||
source ${ROOT_DIR}/../variables.sh
|
||||
|
||||
ACCOUNT_NAME=$1;
|
||||
if [ -z "$ACCOUNT_NAME" ]
|
||||
then
|
||||
echo "First parameter 'ACCOUNT_NAME' is required";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
sed -e "s/{{ACCOUNT_NAME}}/$ACCOUNT_NAME/g" \
|
||||
"${ROOT_DIR}/../sql/find_character.sql" > "/tmp/find_character.sql"
|
||||
sudo mysql -u root --database="acore_characters" < /tmp/find_character.sql
|
||||
|
||||
echo "Find character executed..."
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Alias GIT (git lg for git commits, git ls for commits with changed files)
|
||||
git config --global alias.lg 'log --graph --abbrev-commit --decorate --date=relative --all'
|
||||
git config --global alias.ls 'log --stat --pretty=short --graph'
|
||||
#!/bin/bash
|
||||
|
||||
# Alias GIT (git lg for git commits, git ls for commits with changed files)
|
||||
git config --global alias.lg 'log --graph --abbrev-commit --decorate --date=relative --all'
|
||||
git config --global alias.ls 'log --stat --pretty=short --graph'
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
|
||||
|
||||
|
||||
##########################################################################################
|
||||
# General dependencies
|
||||
##########################################################################################
|
||||
sudo apt update && sudo apt install -y git
|
||||
|
||||
read -p "Merge the orginal azerothcore code into the playerbot azerothcore, are you sure? (Y)es/(N)o: " -n 1 -r
|
||||
echo " ";
|
||||
if [[ $REPLY =~ ^[Yy]$ ]];
|
||||
then
|
||||
##########################################################################################
|
||||
# Try to merge from the orginal azerothcore into the playerbot azerothcore fork branch
|
||||
##########################################################################################
|
||||
cd ${ROOT_DIR}/../_download/azerothcore
|
||||
git reset --hard origin/Playerbot
|
||||
git fetch upstream
|
||||
git merge upstream/master
|
||||
echo " "
|
||||
|
||||
echo "###########################################################################################"
|
||||
echo "## If (conflict) error just run update (2_update.sh) again to restore to the latest"
|
||||
echo "## version of the playerbot branch"
|
||||
echo "###########################################################################################"
|
||||
|
||||
fi
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
|
||||
|
||||
|
||||
##########################################################################################
|
||||
# General dependencies
|
||||
##########################################################################################
|
||||
sudo apt update && sudo apt install -y git
|
||||
|
||||
read -p "Merge the orginal azerothcore code into the playerbot azerothcore, are you sure? (Y)es/(N)o: " -n 1 -r
|
||||
echo " ";
|
||||
if [[ $REPLY =~ ^[Yy]$ ]];
|
||||
then
|
||||
##########################################################################################
|
||||
# Try to merge from the orginal azerothcore into the playerbot azerothcore fork branch
|
||||
##########################################################################################
|
||||
cd ${ROOT_DIR}/../_download/azerothcore
|
||||
git reset --hard origin/Playerbot
|
||||
git fetch upstream
|
||||
git merge upstream/master
|
||||
echo " "
|
||||
|
||||
echo "###########################################################################################"
|
||||
echo "## If (conflict) error just run update (2_update.sh) again to restore to the latest"
|
||||
echo "## version of the playerbot branch"
|
||||
echo "###########################################################################################"
|
||||
|
||||
fi
|
||||
|
||||
@@ -1,24 +1,26 @@
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/..
|
||||
source ${ROOT_DIR}/variables.sh
|
||||
|
||||
AH_BOT_MIN_ITEMS=$1;
|
||||
if [ -z "$AH_BOT_MIN_ITEMS" ]
|
||||
then
|
||||
echo "First parameter 'AH_BOT_MIN_ITEMS' is required";
|
||||
exit 1;
|
||||
fi
|
||||
AH_BOT_MAX_ITEMS=$2
|
||||
if [ -z "$AH_BOT_MAX_ITEMS" ]
|
||||
then
|
||||
echo "Second parameter 'AH_BOT_MAX_ITEMS' is required";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
||||
sed -e "s/{{AH_BOT_MIN_ITEMS}}/$AH_BOT_MIN_ITEMS/g" \
|
||||
-e "s/{{AH_BOT_MAX_ITEMS}}/$AH_BOT_MAX_ITEMS/g" \
|
||||
> "${ROOT_DIR}/sql/update_ahbot_config.sql" > "/tmp/update_ahbot_config.sql"
|
||||
sudo mysql -u root --database="acore_characters" < /tmp/update_ahbot_config.sql
|
||||
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
|
||||
source ${ROOT_DIR}/../variables.sh
|
||||
|
||||
AH_BOT_MIN_ITEMS=$1;
|
||||
if [ -z "$AH_BOT_MIN_ITEMS" ]
|
||||
then
|
||||
echo "First parameter 'AH_BOT_MIN_ITEMS' is required";
|
||||
echo "Second parameter 'AH_BOT_MAX_ITEMS' is required";
|
||||
exit 1;
|
||||
fi
|
||||
AH_BOT_MAX_ITEMS=$2;
|
||||
if [ -z "$AH_BOT_MAX_ITEMS" ]
|
||||
then
|
||||
echo "Second parameter 'AH_BOT_MAX_ITEMS' is required";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
||||
sed -e "s/{{AH_BOT_MIN_ITEMS}}/$AH_BOT_MIN_ITEMS/g" \
|
||||
-e "s/{{AH_BOT_MAX_ITEMS}}/$AH_BOT_MAX_ITEMS/g" \
|
||||
"${ROOT_DIR}/../sql/update_ahbot_config.sql" > "/tmp/update_ahbot_config.sql"
|
||||
sudo mysql -u root --database="acore_characters" < /tmp/update_ahbot_config.sql
|
||||
|
||||
|
||||
echo "AH-bot config updated..."
|
||||
@@ -1,17 +1,17 @@
|
||||
#!/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
|
||||
|
||||
#!/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..."
|
||||
@@ -1,17 +1,17 @@
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/..
|
||||
source ${ROOT_DIR}/variables.sh
|
||||
|
||||
REALM_NAME=$1;
|
||||
if [ -z "$REALM_NAME" ]
|
||||
then
|
||||
echo "First parameter 'REALM_NAME' is required";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
||||
sed -e "s/{{REALM_NAME}}/$REALM_NAME/g" \
|
||||
"${ROOT_DIR}/sql/update_realm_name.sql" > "/tmp/update_realm_name.sql"
|
||||
sudo mysql -u root --database="acore_characters" < /tmp/update_realm_name.sql
|
||||
|
||||
#!/bin/bash
|
||||
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
|
||||
source ${ROOT_DIR}/../variables.sh
|
||||
|
||||
REALM_NAME=$1;
|
||||
if [ -z "$REALM_NAME" ]
|
||||
then
|
||||
echo "First parameter 'REALM_NAME' is required";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
||||
sed -e "s/{{REALM_NAME}}/$REALM_NAME/g" \
|
||||
"${ROOT_DIR}/../sql/update_realm_name.sql" > "/tmp/update_realm_name.sql"
|
||||
sudo mysql -u root --database="acore_characters" < /tmp/update_realm_name.sql
|
||||
|
||||
echo "Server realm name updated..."
|
||||
Reference in New Issue
Block a user