Different approach for running airtime services as unprivileged user
This commit is contained in:
parent
301c0eb4b0
commit
ab35827439
5 changed files with 19 additions and 75 deletions
|
@ -374,12 +374,14 @@ verbose "\n * Creating liquidsoap symlink..."
|
|||
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*
|
||||
sed "s@WEB_USER@${web_user}@g;s@WEB_ROOT@${web_root}@g" ${SCRIPT_DIR}/lib/airtime-session-init.conf > /etc/init/airtime-session-init.conf
|
||||
chmod 644 /etc/init/airtime/*
|
||||
|
||||
service dbus restart
|
||||
initctl reload-configuration
|
||||
|
||||
service airtime-session-init start
|
||||
|
||||
if [ ! -d /var/log/airtime ]; then
|
||||
loud "\n-----------------------------------------------------"
|
||||
loud " * Installing Log Files * "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue