Update menu

Final tweaks, add sudo permissions
This commit is contained in:
M0VUB 2023-01-02 23:36:45 +00:00 committed by GitHub
parent d441707f28
commit d9a980389c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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