adds init files to packages
This commit is contained in:
parent
5853190c42
commit
39549f2efe
@ -148,6 +148,21 @@ nfpms:
|
|||||||
386: i386
|
386: i386
|
||||||
homepage: https://git.xsfx.dev/xsteadfastx/wg-quicker
|
homepage: https://git.xsfx.dev/xsteadfastx/wg-quicker
|
||||||
maintainer: Marvin Preuss <marvin@xsteadfastx.org>
|
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:
|
brews:
|
||||||
- name: wg-quicker
|
- name: wg-quicker
|
||||||
|
@ -22,12 +22,12 @@ checkconfig() {
|
|||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting $description for $CONF"
|
ebegin "Starting $description for $CONF"
|
||||||
wg-quicker up "$CONF"
|
/usr/local/bin/wg-quicker up "$CONF"
|
||||||
eend $? "Failed to start $description for $CONF"
|
eend $? "Failed to start $description for $CONF"
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping $description for $CONF"
|
ebegin "Stopping $description for $CONF"
|
||||||
wg-quicker down "$CONF"
|
/usr/local/bin/wg-quicker down "$CONF"
|
||||||
eend $? "Failed to stop $description for $CONF"
|
eend $? "Failed to stop $description for $CONF"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user