-
Notifications
You must be signed in to change notification settings - Fork 0
/
cyberpanel-dns.sh
22 lines (22 loc) · 1000 Bytes
/
cyberpanel-dns.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
# ++++++++++++++++++++++++++++++++++++++
# + DDoS Filter by HostingFuze Network +
# +....Copyright @ 2022 ... tactu .... +
# ++++++++++++++++++++++++++++++++++++++
mkdir -p /backup
cd /backup
tar -czvf backup-dns.tar.gz /usr/local/CyberCP/dns/templates/dns/*
rm -rf /usr/local/CyberCP/dns/templates/*
cd /usr/local/CyberCP/dns/templates/
curl -l https://raw.githubusercontent.com/hostingfuze/CyberPanel-DNS/main/dns.tar.gz -o /usr/local/CyberCP/dns/templates/dns.tar.gz
tar -xf dns.tar.gz
rm -f /usr/local/CyberCP/dns/templates/dns.tar.gz
curl -l https://raw.githubusercontent.com/hostingfuze/CyberPanel-DNS/main/CloudFlare -o /home/cyberpanel/CloudFlare
echo edit /home/cyberpanel/CloudFlare
echo create permissions for each user
echo example for user admin:
echo cp /home/cyberpanel/CloudFlare /home/cyberpanel/CloudFlareadmin
echo example for user 76fr4gk:
echo cp /home/cyberpanel/CloudFlare /home/cyberpanel/CloudFlare76fr4gk
echo followed by restart :
echo systemctl restart lscpd