This repository has been archived by the owner on Aug 18, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.sh
executable file
·63 lines (63 loc) · 1.97 KB
/
init.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
56
57
58
59
60
61
62
63
#!/bin/bash
# Colors
GREEN="\033[0;32m"
YELLOW="\033[1;33m"
WHITE="\033[1;37m"
RED="\033[0;31m"
NC="\033[0m"
# Welcome message
{
echo ""
echo "╔═══════════════════════════════════╗"
echo "║ ║"
echo -e "║ ${GREEN}✔ VDS Auto Config${NC} ${YELLOW}1.2.0${NC} ║"
echo -e "║ ${WHITE}github.com/koddr/vdsac${NC} ║"
echo "║ ║"
echo "╚═══════════════════════════════════╝"
echo ""
}
# Choose system
PS3="Choose GNU/Linux distribution [1-2] → "
# Select system
select distribution in Debian Ubuntu
do
case $distribution in
Debian)
# Choose system version
PS3="Choose $distribution version [1] → "
# Select version
select version in Stretch
do
case $version in
Stretch)
# Init VDSAC for Debian Stretch
sudo chmod +x ./debian/stretch/init.sh
sudo ./debian/stretch/init.sh $@
break
;;
*)
{
echo ""
echo "░"
echo -e "░ ${RED}Unknown $distribution version ($version).${NC}"
echo "░"
echo ""
}
exit
;;
esac
done
break
;;
*)
{
echo ""
echo "░"
echo -e "░ ${RED}Unknown GNU/Linux distribution ($distribution).${NC}"
echo "░"
echo ""
}
exit
;;
esac
done