-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathupdate-v1-to-v2.sh
22 lines (22 loc) · 1.18 KB
/
update-v1-to-v2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo; echo 'Updating DDOS-Deflate v1 to DDOS-Deflate V2'; echo
echo; echo -n 'Downloading news files...'
wget -q -O /usr/local/ddos/ddos.conf https://raw.githubusercontent.com/stylersnico/DDOS-Deflate-for-CentOs-6/master/ddos.conf
echo -n '.'
wget -q -O /usr/local/ddos/LICENSE https://raw.githubusercontent.com/stylersnico/DDOS-Deflate-for-CentOs-6/master/LICENSE
echo -n '.'
wget -q -O /usr/local/ddos/ddos.sh https://raw.githubusercontent.com/stylersnico/DDOS-Deflate-for-CentOs-6/master/ddos.sh
chmod 0755 /usr/local/ddos/ddos.sh
wget -q -O /usr/local/ddos/update.sh https://raw.githubusercontent.com/stylersnico/DDOS-Deflate-for-CentOs-6/master/update.sh
chmod 0755 /usr/local/ddos/update.sh
wget -q -O /usr/local/ddos/white.list https://raw.githubusercontent.com/stylersnico/DDOS-Deflate-for-CentOs-6/master/white.list
chmod 0755 /usr/local/ddos/white.list
echo '...done'
echo; echo 'Update has completed.'
echo 'Config file is at /usr/local/ddos/ddos.conf'
echo 'New White List file is at /usr/local/ddos/white.list'
echo 'Please send in your comments and/or suggestions to [email protected]'