aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2021-07-15 23:19:12 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-17 09:50:24 +0700
commit7e74048754a841c68494115445900878ade60715 (patch)
treed626c3d3c2cd2235c6f25e667bfb1d61541bb41f
parent29c6f2be33a475f60e3ced1759cafaf8d91554ce (diff)
network/serviio: Use setpriv instead of su -c for init
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--multimedia/serviio/rc.serviio2
1 files changed, 1 insertions, 1 deletions
diff --git a/multimedia/serviio/rc.serviio b/multimedia/serviio/rc.serviio
index 4afae80d8566..eaa3776e69a3 100644
--- a/multimedia/serviio/rc.serviio
+++ b/multimedia/serviio/rc.serviio
@@ -22,7 +22,7 @@ start() {
echo 'Starting Serviio DNLA server...'
mkdir -p $(dirname ${PIDFILE})
chown ${SERVIIO_USER} $(dirname ${PIDFILE})
- su --login -c "$SERVIIO_CMD" $SERVIIO_USER
+ setpriv --reset-env --reuid ${SERVIIO_USER} ${SERVIIO_CMD}
fi
}