make sure airtime-liquidsoap DNE before attempting to create
This commit is contained in:
parent
975abbaf10
commit
b5e542ad36
1 changed files with 7 additions and 0 deletions
|
@ -87,6 +87,13 @@ try:
|
||||||
liq_path = p.communicate()[0].strip()
|
liq_path = p.communicate()[0].strip()
|
||||||
|
|
||||||
if p.returncode == 0:
|
if p.returncode == 0:
|
||||||
|
try:
|
||||||
|
os.unlink(liq_path)
|
||||||
|
except Exception:
|
||||||
|
#liq_path DNE, which is OK.
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
os.symlink(liq_path, "/usr/bin/airtime-liquidsoap")
|
os.symlink(liq_path, "/usr/bin/airtime-liquidsoap")
|
||||||
else:
|
else:
|
||||||
print " * Liquidsoap binary not found!"
|
print " * Liquidsoap binary not found!"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue