LibrePortal/scripts/app/app_scan_available.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

30 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
appScanAvailable()
{
if [ -d "$install_containers_dir" ]; then
echo ""
echo "Folders in $install_containers_dir:"
echo ""
for folder in "$install_containers_dir"/*/; do
local folder_name=$(basename "$folder")
local config_file="$folder/${folder_name}.config"
if [ -f "$config_file" ]; then
local category_var="CFG_${folder_name^^}_CATEGORY"
local title_var="CFG_${folder_name^^}_TITLE"
local description_var="CFG_${folder_name^^}_DESCRIPTION"
local category="${!category_var}"
local title="${!title_var}"
local description="${!description_var}"
if [ -n "$folder_name" ] && [ -n "$category" ]; then
echo "$category - $title ($description)"
fi
else
echo "No ${folder_name}.config file found in $folder"
fi
done
else
isError "$folder_name is not a valid application."
fi
}