-replace sudo with setuidgid in media-monitor
This commit is contained in:
parent
6fbd5112dd
commit
0beed387c5
|
@ -12,5 +12,6 @@ echo "*** Daemontools: starting daemon"
|
|||
exec 2>&1
|
||||
# Note the -u when calling python! we need it to get unbuffered binary stdout and stderr
|
||||
|
||||
sudo PYTHONPATH=${api_client_path} -u ${media_monitor_user} python -u ${media_monitor_path}${media_monitor_script}
|
||||
export PYTHONPATH=${api_client_path}
|
||||
setuidgid ${media_monitor_user} python -u ${media_monitor_path}${media_monitor_script}
|
||||
# EOF
|
||||
|
|
Loading…
Reference in New Issue