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>
31 lines
1.0 KiB
Bash
Executable File
31 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
installSSHKeysForDownload()
|
|
{
|
|
local flag="$1"
|
|
|
|
if [[ "$SSHKEY_SETUP_NEEDED" == "true" ]]; then
|
|
isHeader "SSH Key Install"
|
|
|
|
# Fix permissions for SSH Directory
|
|
local result=$(sudo chmod 0775 "$ssh_dir" > /dev/null 2>&1)
|
|
checkSuccess "Updating $ssh_dir with 0775 permissions."
|
|
|
|
local result=$(sudo chown $docker_install_user:$docker_install_user "$ssh_dir" > /dev/null 2>&1)
|
|
checkSuccess "Updating $ssh_dir with $docker_install_user ownership."
|
|
|
|
# Check if SSH Keys are enabled
|
|
if [[ "$CFG_SSHKEY_ROOT_ENABLED" == "true" ]]; then
|
|
generateSSHSetupKeyPair "root" $flag
|
|
fi
|
|
if [[ "$CFG_SSHKEY_LIBREPORTAL_ENABLED" == "true" ]]; then
|
|
generateSSHSetupKeyPair "$sudo_user_name" $flag
|
|
fi
|
|
if [[ "$CFG_SSHKEY_DOCKERINSTALL_ENABLED" == "true" ]]; then
|
|
if [[ "$CFG_DOCKER_INSTALL_TYPE" == "rootless" ]]; then
|
|
generateSSHSetupKeyPair "$CFG_DOCKER_INSTALL_USER" $flag
|
|
fi
|
|
fi
|
|
fi
|
|
}
|