Commit 8d76ac81 authored by F4BWG's avatar F4BWG

Added editor variable. Updated README with requirements, variable, and troubleshooting

parent 5d0fbabc
NCurses BrandMeister Master Menu
===========================================
========================================
This script is for BrandMeister Master Server sysops. It will help you execute typical tasks you have to do on the server.
Requirements
========================================
This script relies on the following packages:
ncurses
dialog
Installation
===========================================
========================================
* Copy this file where you would like it to reside, and provide execution rights.
* For example:
mv bm-menu.sh /opt/BrandMeister
chmod 755 /opt/BrandMeister/bm-menu.sh
* Edit the file with your favorite editor, and update the MYEDITOR and TITLE variables to your liking.
* Assuming your shell is bash, edit the /etc/bash.bashrc file, and add the following line at the end:
/opt/BrandMeister/bm-menu.sh
* Login to the server, and the menu should appear.
Troubleshooting
========================================
* If when starting the script, you get an empty screen and immediately go back to the prompt, you might be missing the dialog package.
Please run the below command and try again:
apt-get install dialog
Latest version
===========================================
========================================
The latest version of this file can be found on the BrandMeister code repository:
https://code.brandmeister.network/F4BWG/NCursesMasterMenu
Questions / Comments / Suggestions
===========================================
========================================
Please send all questions, comments and suggestions to oli@f4bwg.com
#############################################################
# NCurses-Based Bash Menu for BM Master Sysops #
# Questions/Comments: oli@f4bwg.com #
# Latest Version: #
# https://code.brandmeister.network/F4BWG/NCursesMasterMenu #
# Don't forget to update the TITLE menus below #
#############################################################
#################################################################
# NCurses-Based Bash Menu for BM Master Sysops #
# Questions/Comments: oli@f4bwg.com #
# Latest Version: #
# https://code.brandmeister.network/F4BWG/NCursesMasterMenu #
# Don't forget to update the MYEDITOR and TITLE variables below #
#################################################################
#!/bin/bash
HEIGHT=15
WIDTH=40
CHOICE_HEIGHT=6
#MYEDITOR=/usr/bin/vi
MYEDITOR=/usr/bin/emacs
BACKTITLE="BrandMeister 3021 Canada"
TITLE="BM-3021-CA"
MENU="Choose one of the following options:"
......@@ -36,7 +38,7 @@ case $CHOICE in
~/bm-menu.sh
;;
2)
emacs /opt/BrandMeister/BrandMeister.conf
$MYEDITOR /opt/BrandMeister/BrandMeister.conf
~/bm-menu.sh
;;
3)
......
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