set up gui

This commit is contained in:
2019-02-03 18:52:39 -06:00
parent 4a2272df8b
commit 0522b6dd77
2 changed files with 48 additions and 1 deletions

View File

@@ -419,7 +419,51 @@ service)
exit 0
;;
gui)
while :
do
clear
echo ""
echo " [1] Change Backup Location"
echo " [2] Change MySQL User"
echo " [3] Change MySQL Password"
echo " [4] Change MySQL Config File Location"
echo " [5] Change The Number of Backup Days to Keep"
echo ""
echo " [B] Run Backup"
echo " [L] List Backups"
echo " [D] Delete Backups"
echo ""
echo " [C] Add Crontab Entry to run every 3 Hours"
echo -e " ${idsCL[DarkGray]}(edit crontab manually to adjust the backup frequency)${idsCL[Default]}"
echo ""
echo " [Q] Quit"
echo ""
echo ""
echo -e -n "${idsCL[LightYellow]}Please select an [ActionItem] from above:${idsCL[Default]} "
read -n 1 opt
echo ""
case $opt in
1) WEBMIN_INSTALL
INSTALL_MENU;;
2) GLANCES_INSTALL
INSTALL_MENU;;
3) X11VNC_INSTALL
INSTALL_MENU;;
4) FW_INSTALL
INSTALL_MENU;;
5) LINUPX_UNINSTALL
INSTALL_MENU;;
[Bb]) RUN_BACKUP;;
[Ll]) LIST_BACKUPS;;
[Dd]) DELETE_MENU;;
[Cc]) ADD_CRONTAB;;
[Qq]) EXIT1
exit 1;;
*) echo "Thats an invaild option,";
echo "please select a valid option only.";
sleep 1;;
esac
done
;;
*)

3
run.sh
View File

@@ -12,6 +12,9 @@ source /opt/idssys/nodemgmt/defaults.inc
if [ "$1" != "service" ] && [ "$1" != "status" ] && [ "$1" != "status-check" ] && [ "$1" != "nightlyrenew" ]; then
if [ "$1" != "status" ]; then
if [ $1 = gui ]; then
clear
fi
echo ""
echo -e "${idsCL[Yellow]} NodeMgmt - Galera/NGINX Node Management${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${idsCL[Default]}"
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"