A free, open, self-hosted app platform (GNU AGPLv3): one-click app deploys, Traefik reverse proxy with automatic SSL, rootless Docker support, gluetun VPN routing, and a web dashboard to manage it all. Free & open forever to self-host; optional paid hosted services fund it. See PROMISE.md. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
66 lines
1.3 KiB
Bash
Executable File
66 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
toolsMenu()
|
|
{
|
|
# Enable input
|
|
stty echo
|
|
|
|
while true; do
|
|
isHeader "Tools Menu"
|
|
isOption "1. Menu - SSH"
|
|
isOption "2. Menu - Docker"
|
|
isOption "3. Menu - Crontab"
|
|
# Only show Git reset option if not a local installation
|
|
if [[ "$CFG_INSTALL_MODE" != "local" ]]; then
|
|
isOption "4. Tool - Reset LibrePortal Git Folder"
|
|
isOption "5. Tool - Force Pre-Installation"
|
|
isOption "x. Exit to Main Menu"
|
|
else
|
|
isOption "4. Tool - Force Pre-Installation"
|
|
isOption "x. Exit to Main Menu"
|
|
fi
|
|
echo ""
|
|
isQuestion "What is your choice: "
|
|
read -rp "" tools_menu_choice
|
|
|
|
case $tools_menu_choice in
|
|
1)
|
|
sshToolsMenu;
|
|
;;
|
|
2)
|
|
dockerToolsMenu;
|
|
;;
|
|
3)
|
|
crontabToolsMenu;
|
|
;;
|
|
4)
|
|
# Handle different option numbers based on installation mode
|
|
if [[ "$CFG_INSTALL_MODE" != "local" ]]; then
|
|
toolsresetgit=y
|
|
startOther;
|
|
else
|
|
toolstartpreinstallation=y
|
|
startOther;
|
|
fi
|
|
;;
|
|
5)
|
|
# Only show this option if not local installation
|
|
if [[ "$CFG_INSTALL_MODE" != "local" ]]; then
|
|
toolstartpreinstallation=y
|
|
startOther;
|
|
else
|
|
# For local installation, option 5 doesn't exist
|
|
isNotice "Invalid choice. Please select a valid option."
|
|
fi
|
|
;;
|
|
x)
|
|
endStart;
|
|
|
|
;;
|
|
*)
|
|
isNotice "Invalid choice. Please select a valid option."
|
|
;;
|
|
esac
|
|
done
|
|
}
|