forked from proxmology/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
55 lines (45 loc) · 1.28 KB
/
start.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
49
50
51
52
53
54
55
#!/usr/bin/env bash
function header_info {
cat <<"EOF"
____ ___ _
| _ \ _ __ _____ ___ __ ___ / _ \| | ___ __ _ _ _
| |_) | '__/ _ \ \/ / '_ ` _ \| | | | |/ _ \ / _` | | | |
| __/| | | (_) > <| | | | | | |_| | | (_) | (_| | |_| |
|_| |_| \___/_/\_\_| |_| |_|\___/|_|\___/ \__, |\__, |
|___/ |___/
EOF
}
clear
header_info
txtrst=$(tput sgr0)
txtred=$(tput setab 1)
textpurple=$(tput setab 5)
txtgreen=$(tput bold ; tput setaf 2)
PS3="${txtgreen}Desea quitar cartel suscripcion proxmox? ${txtrst}"
select suscripcion in SI NO
do
break;
done
if [ "$suscripcion" = "SI" ]; then
cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.old
sed 's/if (data.status !== 'Active') {/if (false) {/' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
systemctl restart pveproxy.service
echo "suscripcion quitada."
echo ""
echo ""
echo ""
fi
PS3="${txtgreen}Desea hacer update ? ${txtrst}"
select update in SI NO
do
break;
done
if [ "$update" = "SI" ]; then
apt-get update
clear
echo "update realizado con exito."
echo ""
echo ""
echo ""
echo ""
fi