mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-10 09:02:30 +08:00
b684ac0668
This commit simplifies the goreleaser configuration and then adds nfpm support which allows us to build .deb and .rpm for each of the ARCH we support. The deb and rpm packages adds systemd services and users, creates directories etc and should in general give the user a working environment. We should be able to remove a lot of the complicated, PEBCAK inducing documentation after this. Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
15 lines
405 B
Bash
15 lines
405 B
Bash
#!/bin/sh
|
|
# Determine OS platform
|
|
# shellcheck source=/dev/null
|
|
. /etc/os-release
|
|
|
|
if command -V systemctl >/dev/null 2>&1; then
|
|
echo "Stop and disable headscale service"
|
|
systemctl stop headscale >/dev/null 2>&1 || true
|
|
systemctl disable headscale >/dev/null 2>&1 || true
|
|
echo "Running daemon-reload"
|
|
systemctl daemon-reload || true
|
|
fi
|
|
|
|
echo "Removing run directory"
|
|
rm -rf "/var/run/headscale.sock"
|