mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
network/serviio: Use setpriv instead of su -c for init
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
29c6f2be33
commit
7e74048754
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ start() {
|
||||||
echo 'Starting Serviio DNLA server...'
|
echo 'Starting Serviio DNLA server...'
|
||||||
mkdir -p $(dirname ${PIDFILE})
|
mkdir -p $(dirname ${PIDFILE})
|
||||||
chown ${SERVIIO_USER} $(dirname ${PIDFILE})
|
chown ${SERVIIO_USER} $(dirname ${PIDFILE})
|
||||||
su --login -c "$SERVIIO_CMD" $SERVIIO_USER
|
setpriv --reset-env --reuid ${SERVIIO_USER} ${SERVIIO_CMD}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue