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" }