initial setup after some tweaking

This commit is contained in:
bash
2024-07-22 23:26:52 +00:00
parent 1f10fe58e0
commit 12425e05fa
23 changed files with 784 additions and 2 deletions

35
3_build.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
ROOT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
source ${ROOT_DIR}/variables.sh
read -p "This will (re)build the server with the downloaded resources, are you sure? (Y)es/(N)o: " -n 1 -r
echo " ";
if [[ $REPLY =~ ^[Yy]$ ]];
then
##########################################################################################
# General dependencies
##########################################################################################
sudo apt update && sudo apt install -y unzip
##########################################################################################
# Rebuild server folder based on downloaded source codes
##########################################################################################
sudo rm -rf ${ROOT_DIR}/_server > /dev/null 2>&1
mkdir -p ${ROOT_DIR}/_server/azerothcore/modules && \
cp -r ${ROOT_DIR}/_download/azerothcore ${ROOT_DIR}/_server && \
cp -r ${ROOT_DIR}/_download/modules ${ROOT_DIR}/_server/azerothcore || exit 1
##########################################################################################
# Copy client-data into server folder (instead of ./acore.sh client-data)
##########################################################################################
unzip ${ROOT_DIR}/_data/data.zip -d ${DATAPATH} || exit 1
echo "Executed..."
fi