LibrePortal/scripts/menu/menu_reset_to_menu.sh
librelad 875a60f90f LibrePortal v0.1.0 — initial release
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>
2026-05-21 20:37:54 +01:00

52 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
resetToMenu()
{
# Find all directories in the containers folder and create variables for them
if [ -d "$containers_dir" ]; then
for dir in "$containers_dir"/*/; do
if [ -d "$dir" ]; then
# Get the directory name and remove any trailing slashes
local app_name=$(basename "$dir")
# Convert app name to lowercase and replace any non-alphanumeric characters with underscore
app_name=$(echo "$app_name" | tr '[:upper:]' '[:lower:]' | tr -cd '[:alnum:]_')
# Set the variable
eval "${app_name}=n"
fi
done
fi
# Set any additional non-container variables here
# Restore
restoresingle=n
# Migrate
migratecheckforfiles=n
migratemovefrommigrate=n
migrategeneratetxt=n
migratescanforupdates=n
migratescanforconfigstomigrate=n
migratescanformigratetoconfigs=n
# Database
toollistalltables=n
toollistallapps=n
toollistinstalledapps=n
toolupdatedb=n
toolemptytable=n
tooldeletedb=n
# Tools
toolsresetgit=n
toolstartpreinstallation=n
toolsstartcrontabsetup=n
toolrestartcontainers=n
toolstopcontainers=n
toolsremovedockermanageruser=n
toolsinstalldockermanageruser=n
toolinstallremotesshlist=n
toolinstallcrontab=n
toolinstallcrontabssh=n
mainMenu
}