This an small azerothcore stop/update/start script If you run ./update.sh (or whatever you name it), it'll default to 300 seconds, if you run ./script.sh 900 for example it'll use 900 seconds instead.
- Open it with your text editor
- Edit configs
1. chat="Server will be down for 30 mins after shutdown for maintenance!" - inform your player that your server entering maintenance!
2. `[ -z $1 ] && time=300 || time=$1`
time - The time in seconds till servers get restart and updated
3. world1="/root/wow" #directory to your main realm
Edit directory of your first realm
world2="/root/wow2" #directory to your second realm
Edit directory of your second realm
4. sleeptime="320" - need to >time with at least 20 seconds
5. WEBHOOK="https://discord.com/api/webhooks/12312461230105123761237"
WEBHOOK needed to send .log file to your discord server.
5. modules_world1=(
"$world1/modules/mod-anticheat" - Edit to your modules folder
)
modules_world2=(
) - Same for the second realm
6. log_path="$HOME/wow/logs/" - Edit the path to your prefer location for storing update.logs
- Make your
update.shandstart.shrunable by usingsudo chmod +x update.shandsudo chmod +x start.shat a webhook endpoint (see below) - Use
crontab -eand edit it to automate script. Here is an example:0 4 * * 5 /usr/bin/env bash /root/wow/update.sh - cd ~/wow/discord - Edit path to your discord folder
Revision - tkn963 for helping improuve the code and great advices!
ChaoticWeg for - Creating discord.sh https://github.com/ChaoticWeg/discord.sh
Name: AcoreStopUpdateStart
Repository: https://github.com/helldragonpz/AcoreStopUpdateStart
Download: https://github.com/helldragonpz/AcoreStopUpdateStart/archive/refs/heads/main.zip
License: GNU General Public License v3.0
