shell script to update qtv.cfg files
Before you run this script, please open it and configure following variables:
All of them are well documented so you should have no problems with filling them up.
# ./qtv.sh [2014-11-09@21:19:15] starting new event QTV cfg updater by firstname.lastname@example.org, version: 0.7 [i] checking for required packages [+] all good [i] verifying your /home/users/d2/qtv/qtv.cfg file [i] checking if /home/users/d2/qtv/qtv.bin exists [i] checking if /home/users/d2/qtvbackup exists [i] getting fresh copy of servers.txt file from http://www.quakeservers.net/lists/servers/servers.txt [+] done, 299 servers downloaded [i] fixing duplicates, password-protected and not working servers [+] done, final list have now 241 records [+] checking QW servers (241 in initial list), check bin/qtv.sh.err for details [8/241] 22.214.171.124:30000 not a QW server [40/241] 126.96.36.199:28502 not a QW server [48/241] 188.8.131.52:27501 not a QW server [i] done, 238 servers in the final list [i] backup of existing file [i] preparing input data [i] compiling new /home/users/d2/qtv/qtv.cfg [i] cleaning tmp files [+] restarting qtv [+] running qtv found, PID: 28486, killing it now! [i] checking crontab entry [+] OK, crontab is present [2014-11-09@21:31:39] end
make sure to replace $HOME with something meaningful, like: /home/d2/
- cd $HOME
- git clone https://github.com/d2-d2/qtvcfg
- chmod 755 $HOME/qtvcfg/qtv.sh
- move variables from main script into separate cfg file?
Send them to: email@example.com