forked from CrxCode/VPSPACK-SERVER-V2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instalarold
48 lines (40 loc) · 2.34 KB
/
instalarold
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
rm -rf $HOME/instalarold
cd
if [ $(id -u) != 0 ]
then
echo "Ejecte este script como root"
exit
fi
echo -e "\033[0;34m ===================================\033[0m"
echo -e "\033[1;30m INSTALANDO VPSPACK-SERVER V2.0!\033[0m"
echo -e "\033[0;34m ===================================\033[0m"
echo -e "\033[1;33m Aguarde...\033[1;32m"
mkdir /etc/VpsPackdir 2>/dev/null
mkdir /etc/VpsPackdir/limite 2>/dev/null
mkdir /etc/VpsPackdir/senha 2>/dev/null
wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/VPSPACK-SERVER-V2.0/master/Modulos/limite -O /bin/limite
chmod +x /bin/limite
wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/VPSPACK-SERVER-V2.0/master/Modulos/criarusuario -O /bin/criarusuario
chmod +x /bin/criarusuario
wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/VPSPACK-SERVER-V2.0/master/Modulos/deletarusuario -O /bin/deletarusuario
chmod +x /bin/deletarusuario
wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/VPSPACK-SERVER-V2.0/master/Modulos/redefinirusuario -O /bin/redefinirusuario
chmod +x /bin/redefinirusuario
wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/VPSPACK-SERVER-V2.0/master/Modulos/vps -O /bin/vps
chmod +x /bin/vps
wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/VPSPACK-SERVER-V2.0/master/Modulos/speedtest.py -O /bin/speedtest.py
chmod +x /bin/speedtest.py
clear
echo -e "\033[0;34m =============================================================\033[0m"
echo -e "\033[1;30m VPSPACK-SERVER V2.0!\033[0m"
echo -e "\033[0;34m =============================================================\033[0m"
echo -e "\033[1;32m Instalacion concluida\n\033[1;30m Execute vps:"
echo -e "\033[0;34m =============================================================\033[0m"
echo -e "\033[1;31m • \033[1;37mvps\033[1;36m Menu de Opciones de Administracion\033[01;37m"
echo -e "\033[1;31m • \033[1;37mcriarusuario\033[1;33m Crear Usuario Con Fecha y limite de conexion\033[01;37m"
echo -e "\033[1;31m • \033[1;37mdeletarusuario\033[1;33m Eliminar usuario o solo desconectar\033[01;37m"
echo -e "\033[1;31m • \033[1;37mredefinirusuario\033[1;33m Editar un usuario\033[01;37m"
echo -e "\033[1;31m • \033[1;37mlimite\033[1;33m Limite de conexiones simultaneas\033[01;37m"
echo -e "\033[0;34m =============================================================\033[0m"
rm -rf $HOME/instalarold