From 39549f2efed87a9550e467327ca364429c3ea868 Mon Sep 17 00:00:00 2001 From: Marvin Steadfast Date: Mon, 8 Mar 2021 09:17:06 +0100 Subject: [PATCH] adds init files to packages --- .goreleaser.yml | 15 +++++++++++++++ init/openrc/wg-quicker.init | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 7a29c2d..a7b522d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -148,6 +148,21 @@ nfpms: 386: i386 homepage: https://git.xsfx.dev/xsteadfastx/wg-quicker maintainer: Marvin Preuss + bindir: /usr/local/bin + contents: + - src: init/openrc/wg-quicker.init + dst: /etc/init.d/wg-quicker + packager: apk + file_info: + mode: 0755 + owner: root + group: root + - src: init/systemd/wg-quicker@.service + dst: /etc/systemd/system/wg-quicker@.service + packager: deb + - src: init/systemd/wg-quicker@.service + dst: /etc/systemd/system/wg-quicker@.service + packager: rpm brews: - name: wg-quicker diff --git a/init/openrc/wg-quicker.init b/init/openrc/wg-quicker.init index 13c163f..38c9b11 100644 --- a/init/openrc/wg-quicker.init +++ b/init/openrc/wg-quicker.init @@ -22,12 +22,12 @@ checkconfig() { start() { ebegin "Starting $description for $CONF" - wg-quicker up "$CONF" + /usr/local/bin/wg-quicker up "$CONF" eend $? "Failed to start $description for $CONF" } stop() { ebegin "Stopping $description for $CONF" - wg-quicker down "$CONF" + /usr/local/bin/wg-quicker down "$CONF" eend $? "Failed to stop $description for $CONF" }