generated from hidessh99/tuunnel-mx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxolpanel.sh
48 lines (40 loc) · 1.14 KB
/
xolpanel.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
#install
apt update && apt upgrade
apt install python3 python3-pip git
git clone https://github.com/xolvaid/simplepanel.git
unzip simplepanel/xolpanel.zip
pip3 install -r xolpanel/requirements.txt
pip3 install pillow
#isi data
echo ""
read -e -p "[*] Input your Bot Token : " bottoken
read -e -p "[*] Input Your Id Telegram :" admin
read -e -p "[*] Input Your Domain :" domain
echo -e BOT_TOKEN='"'$bottoken'"' >> /root/xolpanel/var.txt
echo -e ADMIN='"'$admin'"' >> /root/xolpanel/var.txt
echo -e DOMAIN='"'$domain'"' >> /root/xolpanel/var.txt
clear
echo "Done"
echo "Your Data Bot"
echo -e "==============================="
echo "DOMAIN : $bottoken"
echo "Email : $admin"
echo "Api Key : $domain"
echo -e "==============================="
echo "Setting done"
cat > /etc/systemd/system/xolpanel.service << END
[Unit]
Description=Simple XolPanel - @XolPanel
After=network.target
[Service]
WorkingDirectory=/root
ExecStart=/usr/bin/python3 -m xolpanel
Restart=always
[Install]
WantedBy=multi-user.target
END
systemctl start xolpanel
systemctl enable xolpanel
clear
echo " Installations complete, type /menu on your bot"