CC-2016: Rearrange python scripts for reusability
-Fixed pypo-notify.py not being to find new location of api_clients module
This commit is contained in:
parent
079878e5f0
commit
bf925901c1
2 changed files with 9 additions and 3 deletions
|
@ -1,10 +1,16 @@
|
|||
#!/bin/sh
|
||||
ls_user="pypo"
|
||||
export HOME="/home/pypo/"
|
||||
api_client_path="/opt/pypo/"
|
||||
ls_path="/opt/pypo/bin/liquidsoap/liquidsoap"
|
||||
ls_param="/opt/pypo/bin/scripts/ls_script.liq"
|
||||
echo "*** Daemontools: starting liquidsoap"
|
||||
exec 2>&1
|
||||
echo "exec sudo -u ${ls_user} ${ls_path} ${ls_param} "
|
||||
cd /opt/pypo/bin/scripts && sudo -u ${ls_user} ${ls_path} ${ls_param}
|
||||
|
||||
PYTHONPATH=${api_client_path}:$PYTHONPATH
|
||||
export PYTHONPATH
|
||||
|
||||
cd /opt/pypo/bin/scripts
|
||||
exec setuidgid ${ls_user} \
|
||||
${ls_path} ${ls_param}
|
||||
# EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue