adds init files to packages
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is failing

This commit is contained in:
Marvin Steadfast 2021-03-08 09:17:06 +01:00
parent 5853190c42
commit 39549f2efe
2 changed files with 17 additions and 2 deletions

View File

@ -148,6 +148,21 @@ nfpms:
386: i386
homepage: https://git.xsfx.dev/xsteadfastx/wg-quicker
maintainer: Marvin Preuss <marvin@xsteadfastx.org>
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

View File

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