Test to start upstart jobs as web user

This commit is contained in:
Duncan Sommerville 2015-01-05 09:30:08 -05:00
parent 6be35afab9
commit 344e1aa194
3 changed files with 2 additions and 3 deletions

View File

@ -372,7 +372,6 @@ verbose "...Done"
verbose "\n * Creating sudoers file..."
# sed -e "s/WEB_USER/${web_user}/g" /usr/lib/airtime/media-monitor/airtime-media-monitor-init-d > /etc/init.d/airtime-media-monitor
touch /etc/sudoers.d/airtime-media-monitor_${web_user}
echo "${web_user} ALL = (ALL) NOPASSWD: /sbin/service airtime-media-monitor *, \
/sbin/service airtime-playout *, /sbin/service airtime-liquidsoap *" > /etc/sudoers.d/service_${web_user}
# sed -e "s/WEB_USER/${web_user}/g" /usr/lib/airtime/pypo/bin/airtime-playout-init-d > /etc/init.d/airtime-playout

View File

@ -12,4 +12,4 @@ setgid www-data
env LANG='en_US.UTF-8'
env LC_ALL='en_US.UTF-8'
exec airtime-media-monitor
exec sudo -u www-data "airtime-media-monitor"

View File

@ -12,4 +12,4 @@ setgid www-data
env LANG='en_US.UTF-8'
env LC_ALL='en_US.UTF-8'
exec airtime-playout
exec sudo -u www-data "airtime-playout"