More work on running upstart services as non-privileged user
This commit is contained in:
parent
d7dd381ec3
commit
4559e3e27d
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue