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

35 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
checkSSHKeysRequirement()
{
# SSH Keys
if [[ $CFG_SSHKEY_ROOT_ENABLED == "true" ]]; then
if checkSSHSetupKeyPair "root"; then
isSuccessful "The SSH Key(s) for root appears to be setup."
else
isNotice "An SSH Key for root is not setup."
SSHKEY_SETUP_NEEDED="true"
((preinstallneeded++))
fi
fi
if [[ $CFG_SSHKEY_LIBREPORTAL_ENABLED == "true" ]]; then
if checkSSHSetupKeyPair "$sudo_user_name"; then
isSuccessful "The SSH Key(s) for $sudo_user_name appears to be setup."
else
isNotice "An SSH Key for $sudo_user_name is not setup."
SSHKEY_SETUP_NEEDED="true"
((preinstallneeded++))
fi
fi
if [[ $CFG_SSHKEY_DOCKERINSTALL_ENABLED == "true" ]]; then
if [[ "$CFG_DOCKER_INSTALL_TYPE" == "rootless" ]]; then
if checkSSHSetupKeyPair "$CFG_DOCKER_INSTALL_USER"; then
isSuccessful "The SSH Key(s) for $CFG_DOCKER_INSTALL_USER appears to be setup."
else
isNotice "An SSH Key for $CFG_DOCKER_INSTALL_USER is not setup."
SSHKEY_SETUP_NEEDED="true"
((preinstallneeded++))
fi
fi
fi
}