-
Notifications
You must be signed in to change notification settings - Fork 3
/
mwg.sh
45 lines (43 loc) · 1.24 KB
/
mwg.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
#!/bin/bash
clear
red='\e[1;31m'
green='\e[0;32m'
NC='\e[0m'
echo -e ""
echo -e " ══════════════════════════════════════════════"
echo -e " ${green}WIREGUARD${NC} "
echo -e " ══════════════════════════════════════════════"
echo -e " "
echo -e " [ 1 ] CREATE NEW USER"
echo -e " [ 2 ] DELETE ACTIVE USER"
echo -e " [ 3 ] CHECK USER LOGIN"
echo -e " [ 4 ] EXTEND ACTIVE USER"
echo -e " ══════════════════════════════════════════════"
echo -e " ${green}[ 0 ] EXIT TO MENU${NC} "
echo -e " ══════════════════════════════════════════════"
echo -e "\e[1;31m"
read -p " Please select an option : " wg
echo -e "\e[0m"
case $wg in
1)
add-wg
;;
2)
del-wg
;;
3)
cek-wg
;;
4)
renew-wg
;;
0)
menu
;;
*)
echo -e "Please enter an correct number"
sleep 1
clear
mwg
;;
esac