Update for the new YAF hosts file format and remove the restart of the gateway.
This commit is contained in:
parent
f7d9310d0a
commit
6f6d27ebf3
1 changed files with 2 additions and 11 deletions
|
@ -34,8 +34,6 @@
|
|||
# It will also prune the number of backup files according to a value specified
|
||||
# by you in the configuration below.
|
||||
#
|
||||
# When done, it will restart YSFGateway to make the Hosts changes take effect.
|
||||
#
|
||||
# To install in root's crontab use the command ...
|
||||
#
|
||||
# sudo crontab -e
|
||||
|
@ -56,10 +54,6 @@ YSFHOSTS=/path/to/YSFHosts.txt
|
|||
# How many YSFHosts files do you want backed up (0 = do not keep backups)
|
||||
YSFHOSTSFILEBACKUP=1
|
||||
|
||||
# Command line to restart YSFGatway
|
||||
YSFRESTARTCOMMAND="systemctl restart ysfgateway.service"
|
||||
# YSFRESTARTCOMMAND="killall YSFGateway ; /path/to/YSFGateway/executable/YSFGateway /path/toYSFGateway/ini/file/YSFGateway.ini"
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Do not edit below here
|
||||
|
@ -87,14 +81,11 @@ if [ ${BACKUPCOUNT} -gt ${YSFHOSTSFILEBACKUP} ]
|
|||
then
|
||||
for f in $(ls -tr ${YSFHOSTS}.* | head -${BACKUPSTODELETE})
|
||||
do
|
||||
rm $f
|
||||
rm -f $f
|
||||
done
|
||||
fi
|
||||
|
||||
# Generate YSFHosts.txt file
|
||||
curl https://register.ysfreflector.de/export.php > ${YSFHOSTS}
|
||||
|
||||
# Restart YSFgateway
|
||||
eval ${YSFRESTARTCOMMAND}
|
||||
curl https://register.ysfreflector.de/export_csv.php > ${YSFHOSTS}
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue