mirror of
https://github.com/Cheviiot/Nivora.git
synced 2026-08-03 15:51:12 +00:00
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.
14 lines
369 B
Bash
Executable File
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
|