mirror of
https://github.com/ShaYmez/hblink3-docker-install.git
synced 2025-12-22 21:49:50 +13:00
Update menu
Final tweaks, add sudo permissions
This commit is contained in:
parent
d441707f28
commit
d9a980389c
@ -25,20 +25,19 @@ menuopt=$(whiptail --title "HBlink3 Control Version 1.9PL" --menu "Select option
|
|||||||
3 " Restart HBlink " \
|
3 " Restart HBlink " \
|
||||||
4 " Update HBlink / Docker " \
|
4 " Update HBlink / Docker " \
|
||||||
5 " Flush HBlink / Truncate Logs " \
|
5 " Flush HBlink / Truncate Logs " \
|
||||||
6 " Edit Configuration " \
|
6 " Edit HBlink Config " \
|
||||||
7 " Edit Routing Rules / Python " \
|
7 " Edit HBlink Rules " \
|
||||||
8 " Edit Dashboard Config " \
|
8 " Edit Dashboard Config " \
|
||||||
9 " Full Upgrade OBPMaster " \
|
9 " Full Upgrade OBPMaster " \
|
||||||
10 " System Update / apt update " \
|
10 " System Update / apt update " \
|
||||||
11 " Reboot Entire Server "
|
11 " Reboot Entire Server " \
|
||||||
12 " Shutdown Entire Server " 3>&1 1>&2 2>&3)
|
12 " Shutdown Entire Server " 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
# Back-end HBlink3 menu
|
# Back-end HBlink3 menu
|
||||||
#exitstatus=$?
|
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
echo "You have chosen option:" $menuopt
|
echo "You have chosen option:" $menuopt
|
||||||
else
|
else
|
||||||
echo "Type 'menu' to start HBlink3 Control Menu "; break;
|
echo "Type 'hblink-menu' to enter HBlink3 Control Menu "; break;
|
||||||
fi
|
fi
|
||||||
# Action
|
# Action
|
||||||
case $menuopt in
|
case $menuopt in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user