Files
Nivora/netbird/postinstall.sh
T
Александр f405ae2bcf feat: create autonomous Nivora package repository
Maintain a validated cross-distribution package catalog.
Automate upstream updates, isolated builds, diagnostics, and direct publication.
Build the official GitHub Desktop sources for Linux with working OAuth.
2026-07-25 00:49:32 +10:00

14 lines
369 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
legacy_unit=/etc/systemd/system/netbird.service
if [[ -f "$legacy_unit" ]] && grep -Fq 'ExecStart=/usr/bin/netbird "service" "run"' "$legacy_unit"; then
rm -f -- "$legacy_unit"
fi
if command -v systemctl >/dev/null 2>&1 && [[ -d /run/systemd/system ]]; then
systemctl daemon-reload
systemctl enable --now netbird.service
fi