LibrePortal/scripts/checks/requirements/check_sshdownload.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

25 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
checkSSHDownloadRequirement()
{
local sshdownload_status=$(dockerCheckAppInstalled "sshdownload" "docker")
if [[ "$sshdownload_status" == "installed" ]]; then
while true; do
isHeader "SSH SECURITY WARNING"
isNotice "The SSH Download download service is currently online."
isNotice "This is potentially DANGEROUS as it's accessable via anyone on the VPN"
isNotice "We highly recommend uninstalling this service after downloading the SSH keys"
isNotice "If you need to access this again, you can install it via the system install option"
echo ""
isQuestion "Would like to destroy the SSH Download service for security purposes? (y/n): "
read -p "" ssh_download_uninstall
if [[ -n "$ssh_download_uninstall" ]]; then
break
fi
isNotice "Please provide a valid input."
done
if [[ "$ssh_download_uninstall" == [yY] ]]; then
dockerUninstallApp sshdownload;
fi
fi
}