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>
27 lines
712 B
Bash
Executable File
27 lines
712 B
Bash
Executable File
#!/bin/bash
|
|
|
|
checkSSHRemoteRequirement()
|
|
{
|
|
if [[ $CFG_REQUIREMENT_SSHREMOTE == "true" ]]; then
|
|
### Custom SSH Remote Install
|
|
if [[ -n "$CFG_IPS_SSH_SETUP" ]]; then
|
|
ip_found=0
|
|
# Split the comma-separated IP addresses into an array
|
|
IFS=',' read -ra ip_addresses <<< "$CFG_IPS_SSH_SETUP"
|
|
# Loop through the IP addresses
|
|
for ip in "${ip_addresses[@]}"; do
|
|
ip_found=1
|
|
done
|
|
|
|
if [ "$ip_found" -eq 0 ]; then
|
|
isSuccessful "No Remote SSH Install IP has been found to setup"
|
|
else
|
|
isSuccessful "Remote SSH Install IP(s) have been found to setup"
|
|
setupSSHRemoteKeys=true
|
|
((preinstallneeded++))
|
|
fi
|
|
else
|
|
isSuccessful "No hosts found in the configuration."
|
|
fi
|
|
fi
|
|
} |