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>
22 lines
563 B
Bash
Executable File
22 lines
563 B
Bash
Executable File
#!/bin/bash
|
|
|
|
checkSSHSetupKeyPair()
|
|
{
|
|
local username="$1"
|
|
|
|
local private_key_file="${CFG_INSTALL_NAME}_sshkey_$username"
|
|
local private_key_path="${ssh_dir}private"
|
|
local private_key_full="$private_key_path/$private_key_file"
|
|
|
|
local public_key_file="$private_key_file.pub"
|
|
local public_key_path="${ssh_dir}public"
|
|
local public_key_full="$public_key_path/$public_key_file"
|
|
|
|
# Check if both private and public key files exist
|
|
if [ -f "$private_key_full" ] && [ -f "$public_key_full" ]; then
|
|
:
|
|
else
|
|
:
|
|
fi
|
|
}
|