Merge branch 'master' of dev.sourcefabric.org:campcaster
This commit is contained in:
commit
37c96d3695
5 changed files with 23 additions and 22 deletions
|
@ -1,4 +1,6 @@
|
|||
project.home = /home/naomiaro/dev-campcaster/campcaster
|
||||
#Note: project.home is automatically generated by the propel-install script.
|
||||
#Any manual changes to this value will be overwritten.
|
||||
project.home = /path/to/airtime
|
||||
project.build = ${project.home}/build
|
||||
|
||||
#Database driver
|
||||
|
|
|
@ -31,23 +31,17 @@ if(exec("whoami") != "root"){
|
|||
|
||||
$property = 'project.home';
|
||||
$lines = file('../build/build.properties');
|
||||
foreach ($lines as $line) {
|
||||
foreach ($lines as $key => &$line) {
|
||||
if ($property == substr($line, 0, strlen($property))){
|
||||
$indexOfEquals = strpos($line, '=');
|
||||
if ($indexOfEquals !== false){
|
||||
$dir_value = trim(substr($line, $indexOfEquals+1));
|
||||
//check to make sure that the project.home path is equal to one level
|
||||
//up of this install script location.
|
||||
$dir_found = realpath(__dir__.'/../') == realpath($dir_value);
|
||||
}
|
||||
break;
|
||||
$line = $property." = ".realpath(__dir__.'/../')."\n";
|
||||
}
|
||||
}
|
||||
|
||||
if ($dir_found === false){
|
||||
echo ("../build/build.properties 'project.home' value of '$dir_value' is incorrect. Please correct and try install again.\n");
|
||||
exit(1);
|
||||
$fp=fopen('../build/build.properties', 'w');
|
||||
foreach($lines as $key => $line){
|
||||
fwrite($fp, $line);
|
||||
}
|
||||
fclose($fp);
|
||||
|
||||
|
||||
echo "******************************* Install Begin ********************************\n";
|
||||
|
|
|
@ -35,6 +35,9 @@ def create_user(username):
|
|||
print "Creating user "+username
|
||||
os.system("adduser --system --quiet --group --shell /bin/bash "+username)
|
||||
|
||||
#add pypo to audio group
|
||||
os.system("adduser " + username + " audio")
|
||||
|
||||
#set pypo password
|
||||
p = os.popen('/usr/bin/passwd pypo', 'w')
|
||||
p.write('pypo\n')
|
||||
|
|
|
@ -693,6 +693,8 @@ class Playout:
|
|||
# Get any extra information for liquidsoap (which will be sent back to us)
|
||||
liquidsoap_data = self.api_client.get_liquidsoap_data(pkey, schedule)
|
||||
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(self.export_source + '.flip')
|
||||
|
|
|
@ -94,13 +94,13 @@ source = smooth_add(normal=source,special=special)
|
|||
# Stream Output
|
||||
#####################################
|
||||
# finally the output | mp3
|
||||
clock(id="clock_icecast",
|
||||
output.icecast(%mp3,
|
||||
host = icecast_host, port = icecast_port,
|
||||
password = icecast_pass, mount = mount_scheduler,
|
||||
fallible = true,
|
||||
restart = true,
|
||||
restart_delay = 5,
|
||||
buffer(source)))
|
||||
#clock(id="clock_icecast",
|
||||
# output.icecast(%mp3,
|
||||
# host = icecast_host, port = icecast_port,
|
||||
# password = icecast_pass, mount = mount_scheduler,
|
||||
# fallible = true,
|
||||
# restart = true,
|
||||
# restart_delay = 5,
|
||||
# buffer(source)))
|
||||
|
||||
#output.dummy(live_in)
|
||||
out(source)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue