CC-2850: Liquidsoap doesn't rotate its log files in Airtime
-fixed -also noticed files were being chmod'd to 755, which is unnecessary. Also fixed.
This commit is contained in:
parent
693c72c396
commit
ee1a173953
5 changed files with 22 additions and 4 deletions
|
@ -103,7 +103,7 @@ try:
|
|||
os.remove(config["bin_dir"]+"/bin/liquidsoap_scripts/liquidsoap.cfg")
|
||||
|
||||
print "Setting permissions"
|
||||
os.system("chmod -R 755 "+config["bin_dir"])
|
||||
#os.system("chmod -R 755 "+config["bin_dir"])
|
||||
os.system("chown -R pypo:pypo "+config["bin_dir"])
|
||||
os.system("chown -R pypo:pypo "+config["cache_base_dir"])
|
||||
|
||||
|
@ -112,8 +112,12 @@ try:
|
|||
|
||||
p = Popen("update-rc.d airtime-playout defaults >/dev/null 2>&1", shell=True)
|
||||
sts = os.waitpid(p.pid, 0)[1]
|
||||
|
||||
#copy logrotate script
|
||||
shutil.copy(config["bin_dir"]+"/bin/liquidsoap_scripts/airtime-liquidsoap.logrotate", "/etc/logrotate.d/airtime-liquidsoap")
|
||||
|
||||
# we should access the DB and generate liquidsoap.cfg under etc/airtime/
|
||||
|
||||
# we should access the DB and generate liquidsoap.cfg under /etc/airtime/
|
||||
api_client = api_client.api_client_factory(config)
|
||||
ss = api_client.get_stream_setting()
|
||||
|
||||
|
|
|
@ -29,6 +29,9 @@ try:
|
|||
os.system("/etc/init.d/airtime-playout stop")
|
||||
os.system("rm -f /etc/init.d/airtime-playout")
|
||||
os.system("update-rc.d -f airtime-playout remove >/dev/null 2>&1")
|
||||
|
||||
#copy logrotate script
|
||||
os.system("rm -f /etc/logrotate.d/airtime-liquidsoap")
|
||||
|
||||
print "Removing cache directories"
|
||||
remove_path(config["cache_base_dir"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue