More work on running upstart services as non-privileged user

This commit is contained in:
Duncan Sommerville 2015-01-08 10:48:54 -05:00
parent d7dd381ec3
commit 4559e3e27d
2 changed files with 4 additions and 3 deletions

View File

@ -317,8 +317,8 @@ loud "\n-----------------------------------------------------"
loud " * Installing Airtime Services * "
loud "-----------------------------------------------------"
verbose "\n * Installing liquidsoap and python..."
loudCmd "apt-get -y --force-yes install liquidsoap python python-pip"
verbose "\n * Installing necessary service binaries..."
loudCmd "apt-get -y --force-yes install liquidsoap python python-pip dbus"
loudCmd "pip install setuptools"
verbose "...Done"
@ -375,6 +375,7 @@ ln -sf /usr/bin/liquidsoap /usr/bin/airtime-liquidsoap
verbose "...Done"
sed "s@WEB_USER@${web_user}@g" ${SCRIPT_DIR}/lib/Upstart.conf > /etc/dbus-1/system.d/Upstart.conf
chmod 644 /etc/init/airtime*
service dbus restart
initctl reload-configuration

View File

@ -55,7 +55,7 @@
send_type="method_call" send_member="GetAllInstances" />
</policy>
<!-- Permit the root user to invoke all of the methods on Upstart, its jobs
<!-- Permit the web user to invoke all of the methods on Upstart, its jobs
or their instances, and to get and set properties. -->
<policy user="WEB_USER">
<allow send_destination="com.ubuntu.Upstart"