set -x

curl -L -o /usr/bin/apply_modpak https://public.dusansimic.me/apply_modpak.sh
chmod +x /usr/bin/apply_modpak

NETBIRD_HOSTNAME=$(hostnamectl hostname)
netbird deregister
netbird up --allow-server-ssh --hostname $NETBIRD_HOSTNAME --management-url https://netbird.dusansimic.me --setup-key B9CC2DE7-6B18-4594-9345-044226450C61 --disable-ssh-auth
