#!/bin/bash
set -e
mkdir -p /opt
cd /opt
curl -fsSL https://github.com/netbirdio/netbird/releases/latest/download/getting-started.sh -o getting-started.sh
chmod +x getting-started.sh
printf "netbird.kpt-lab.de\n0\ny\n" | DOMAIN=netbird.kpt-lab.de bash getting-started.sh 2>&1
