From ed0f24831d9139918949a794fc03cee15a5fa84f Mon Sep 17 00:00:00 2001 From: mkonecny Date: Wed, 4 May 2011 17:39:19 -0400 Subject: [PATCH] CC-2239-remove-sudo -done! Replaced with su --- python_apps/pypo/install/pypo-daemontools-liquidsoap.sh | 5 ++++- python_apps/show-recorder/install/recorder-daemontools.sh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python_apps/pypo/install/pypo-daemontools-liquidsoap.sh b/python_apps/pypo/install/pypo-daemontools-liquidsoap.sh index 3a0f3eef7..4005cfd48 100755 --- a/python_apps/pypo/install/pypo-daemontools-liquidsoap.sh +++ b/python_apps/pypo/install/pypo-daemontools-liquidsoap.sh @@ -8,5 +8,8 @@ echo "*** Daemontools: starting liquidsoap" exec 2>&1 cd /usr/lib/airtime/pypo/bin/scripts -sudo PYTHONPATH=${api_client_path} -u ${ls_user} ${ls_path} ${ls_param} + +export PYTHONPATH=${api_client_path} +su ${ls_user} -c "${ls_path} ${ls_param}" + # EOF diff --git a/python_apps/show-recorder/install/recorder-daemontools.sh b/python_apps/show-recorder/install/recorder-daemontools.sh index 311d9ff70..2500a7679 100755 --- a/python_apps/show-recorder/install/recorder-daemontools.sh +++ b/python_apps/show-recorder/install/recorder-daemontools.sh @@ -14,5 +14,8 @@ 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 ${recorder_user} python -u ${recorder_path}${recorder_script} +export PYTHONPATH=${api_client_path} +su ${recorder_user} -c "python -u ${recorder_path}${recorder_script}" + + # EOF