1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-17 05:05:14 +03:00
aports/testing/wsdd/0001-openrc-user.patch
ptrcnull d6eed20336 testing/wsdd: new aport
Web Service Discovery host daemon
https://github.com/christgau/wsdd
2022-01-25 23:05:45 +00:00

31 lines
946 B
Diff

Author: Patrycja Rosa <alpine@ptrcnull.me>
Date: Tue Jan 25 23:47:10 2022 +0100
Change default user/group to wsdd
diff --git a/etc/openrc/conf.d/wsdd b/etc/openrc/conf.d/wsdd
index 7bb9ee0..0781ba2 100644
--- a/etc/openrc/conf.d/wsdd
+++ b/etc/openrc/conf.d/wsdd
@@ -2,7 +2,7 @@
# Override the default user/group under which wsdd runs.
# Must follow the user[:group] notation.
-#WSDD_USER="daemon:daemon"
+#WSDD_USER="wsdd:wsdd"
# Specify alternative log file location.
#WSDD_LOG_FILE="/var/log/wsdd.log"
diff --git a/etc/openrc/init.d/wsdd b/etc/openrc/init.d/wsdd
index da2aa72..1456905 100755
--- a/etc/openrc/init.d/wsdd
+++ b/etc/openrc/init.d/wsdd
@@ -10,7 +10,7 @@ depend() {
SMB_CONFIG_FILE="/etc/samba/smb.conf"
LOG_FILE="${WSDD_LOG_FILE:-/var/log/wsdd.log}"
WSDD_EXEC="/usr/bin/wsdd"
-RUN_AS_USER="${WSDD_USER:-daemon:daemon}"
+RUN_AS_USER="${WSDD_USER:-wsdd:wsdd}"
start() {
ebegin "Starting ${RC_SVCNAME} daemon"