-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver-manager
More file actions
32 lines (30 loc) · 824 Bytes
/
server-manager
File metadata and controls
32 lines (30 loc) · 824 Bytes
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
#!/bin/bash
user=$(whoami)
#Checking for user permissions
if [ "$user" != "root" ]; then
echo ${red}"This program must be run as root ${textreset}"
echo "Exiting"
exit
else
echo "Running Program"
fi
items=(1 "FreeRADIUS Management"
2 "System Management"
3 "Server Management Options"
4 "System Tools"
5 "Welcome to Server Manager"
)
while choice=$(dialog --title "$TITLE" \
--backtitle "Server Management" \
--menu "Please select" 20 40 3 "${items[@]}" \
2>&1 >/dev/tty)
do
case $choice in
1) /root/.servman/FRMan;;
2) /root/.servman/SYSMan;;
3) /root/.servman/SERVMan;;
4) /root/.servman/TOOLMan;;
5) /root/.servman/welcome.readme | more;;
esac
done
clear # clear after user pressed Cancel