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 " * Installing Airtime Services * "
|
||||||
loud "-----------------------------------------------------"
|
loud "-----------------------------------------------------"
|
||||||
|
|
||||||
verbose "\n * Installing liquidsoap and python..."
|
verbose "\n * Installing necessary service binaries..."
|
||||||
loudCmd "apt-get -y --force-yes install liquidsoap python python-pip"
|
loudCmd "apt-get -y --force-yes install liquidsoap python python-pip dbus"
|
||||||
loudCmd "pip install setuptools"
|
loudCmd "pip install setuptools"
|
||||||
verbose "...Done"
|
verbose "...Done"
|
||||||
|
|
||||||
|
@ -375,6 +375,7 @@ ln -sf /usr/bin/liquidsoap /usr/bin/airtime-liquidsoap
|
||||||
verbose "...Done"
|
verbose "...Done"
|
||||||
|
|
||||||
sed "s@WEB_USER@${web_user}@g" ${SCRIPT_DIR}/lib/Upstart.conf > /etc/dbus-1/system.d/Upstart.conf
|
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
|
service dbus restart
|
||||||
initctl reload-configuration
|
initctl reload-configuration
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
send_type="method_call" send_member="GetAllInstances" />
|
send_type="method_call" send_member="GetAllInstances" />
|
||||||
</policy>
|
</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. -->
|
or their instances, and to get and set properties. -->
|
||||||
<policy user="WEB_USER">
|
<policy user="WEB_USER">
|
||||||
<allow send_destination="com.ubuntu.Upstart"
|
<allow send_destination="com.ubuntu.Upstart"
|
||||||
|
|
Loading…
Reference in New Issue