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>
46 lines
1.1 KiB
Bash
Executable File
46 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# This is used ONLY for Docker containers
|
|
|
|
# Function to detect OS and install packages
|
|
install_tailscale()
|
|
{
|
|
local os_info
|
|
|
|
if [ -f /etc/os-release ]; then
|
|
source /etc/os-release
|
|
os_info="$ID"
|
|
echo "Operating System: $PRETTY_NAME"
|
|
else
|
|
echo "Unable to determine the OS."
|
|
fi
|
|
|
|
case "$os_info" in
|
|
"ubuntu" | "debian")
|
|
echo "Installing packages using apt..."
|
|
apt-get update
|
|
apt-get install -y curl
|
|
;;
|
|
"centos" | "rhel")
|
|
echo "Installing packages using yum..."
|
|
yum install -y curl
|
|
;;
|
|
"alpine")
|
|
echo "Installing packages using apk..."
|
|
apk --no-cache add curl
|
|
;;
|
|
*)
|
|
echo "Unsupported distribution: $os_info"
|
|
;;
|
|
esac
|
|
|
|
# Install Tailscale using its official installation script
|
|
echo "Installing Tailscale..."
|
|
curl -fsSL https://tailscale.com/install.sh | sh
|
|
|
|
echo "Tailscale installed and configured."
|
|
}
|
|
|
|
# Call the function to detect and install
|
|
install_tailscale
|