Commit fe157a8e authored by F4BWG's avatar F4BWG

v1.2.0a incl. twitter and activity search

parent 6ffebea8
#################################################################
# NCurses-Based Bash Menu for BM Master Sysops #
# Version: 1.2.0a #
# Version: 1.3.0a #
# Questions/Comments: oli@f4bwg.com #
# Latest Version: #
# https://code.brandmeister.network/F4BWG/NCursesMasterMenu #
......@@ -18,7 +18,8 @@ TITLE="BM-3021-CA"
#### YOU SHOULD NOT CHANGE THESE SETTINGS####
BACKTITLE="BrandMeister Master $(grep -m 1 'network =' /opt/BrandMeister/BrandMeister.conf | grep -E -o '[0-9]+') version $(dpkg --list | grep -i brandmeister | grep -vi registry | awk -F ' ' '{ print $3 }') $(service brandmeister status | grep -i active:)"
VSCRIPT="1.3.0a"
BACKTITLE="($VSCRIPT) BrandMeister Master $(grep -m 1 'network =' /opt/BrandMeister/BrandMeister.conf | grep -E -o '[0-9]+') version $(dpkg --list | grep -i brandmeister | grep -vi registry | awk -F ' ' '{ print $3 }') $(service brandmeister status | grep -i active:)"
MENU="Choose one of the following options:"
THISFILE=$(readlink -f $0)
......@@ -30,7 +31,9 @@ OPTIONS=( 1 "Realtime BrandMeister Activity"
6 "Update / Upgrade"
7 "Restart BrandMeister and check"
8 "Tweet a text"
9 "Check bans")
9 "Check bans"
10 "Update this script"
)
CHOICE=$(dialog --clear \
--backtitle "$BACKTITLE" \
......@@ -101,4 +104,9 @@ case $CHOICE in
read -n1 -r -p "End of list..." key
$THISFILE
;;
10)
read -p "Current version $VSCRIPT . Press Enter to update"
wget --backups=2 -O $THISFILE https://code.brandmeister.network/F4BWG/NCursesMasterMenu/raw/master/bm-menu.sh
$THISFILE
;;
esac
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment