add pypo user to audio group during installation.
This commit is contained in:
parent
490adb854c
commit
5afa844553
2 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,9 @@ def create_user(username):
|
||||||
print "Creating user "+username
|
print "Creating user "+username
|
||||||
os.system("adduser --system --quiet --group --shell /bin/bash "+username)
|
os.system("adduser --system --quiet --group --shell /bin/bash "+username)
|
||||||
|
|
||||||
|
#add pypo to audio group
|
||||||
|
os.system("adduser " + username + " audio")
|
||||||
|
|
||||||
#set pypo password
|
#set pypo password
|
||||||
p = os.popen('/usr/bin/passwd pypo', 'w')
|
p = os.popen('/usr/bin/passwd pypo', 'w')
|
||||||
p.write('pypo\n')
|
p.write('pypo\n')
|
||||||
|
|
|
@ -693,6 +693,8 @@ class Playout:
|
||||||
# Get any extra information for liquidsoap (which will be sent back to us)
|
# Get any extra information for liquidsoap (which will be sent back to us)
|
||||||
liquidsoap_data = self.api_client.get_liquidsoap_data(pkey, schedule)
|
liquidsoap_data = self.api_client.get_liquidsoap_data(pkey, schedule)
|
||||||
logger.debug("Sending additional data to liquidsoap: "+liquidsoap_data)
|
logger.debug("Sending additional data to liquidsoap: "+liquidsoap_data)
|
||||||
|
|
||||||
|
#Sending JSON string. Example: {"schedule_id":"13"}
|
||||||
tn.write("vars.pypo_data "+liquidsoap_data+"\n")
|
tn.write("vars.pypo_data "+liquidsoap_data+"\n")
|
||||||
|
|
||||||
tn.write(self.export_source + '.flip')
|
tn.write(self.export_source + '.flip')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue