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

64 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
function isSuccessful()
{
echo -e "${GREEN}SUCCESS:${NC} $1"
}
function isError()
{
echo -e "${RED}ERROR:${NC} $1"
}
function isFatalError()
{
echo -e "${RED}ERROR:${NC} $1"
}
function isFatalErrorExit()
{
echo -e "${RED}ERROR:${NC} $1"
echo ""
exit 1
}
function isNotice()
{
echo -e "${YELLOW}NOTICE:${NC} $1"
}
function isQuestion()
{
echo -e -n "${BLUE}QUESTION:${NC} $1 "
}
function isOptionMenu()
{
echo -e -n "${PINK}OPTION:${NC} $1"
}
function isOption()
{
echo -e "${PINK}OPTION:${NC} $1"
}
function isHeader()
{
local title="$1"
local width=52
local inner=$((width - 6))
local title_len=${#title}
local total_pad=$((inner - title_len))
if (( total_pad < 0 )); then total_pad=0; fi
local left_pad=$((total_pad / 2))
local right_pad=$((total_pad - left_pad))
local bar
bar=$(printf '%*s' "$width" '' | tr ' ' '#')
echo ""
echo "$bar"
printf '###%*s%s%*s###\n' "$left_pad" '' "$title" "$right_pad" ''
echo "$bar"
echo ""
}