make sure /usr/bin/airtime-liquidsoap symlink is gone

This commit is contained in:
Martin Konecny 2012-05-28 13:36:49 -04:00
parent 910f8e8627
commit 3d23d5102b
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,10 @@ if os.geteuid() != 0:
try:
#stop pypo and liquidsoap processes
print "Waiting for pypo processes to stop...",
subprocess.call("rm -f /usr/bin/airtime-liquidsoap")
try:
os.remove("/usr/bin/airtime-liquidsoap")
except Exception, e:
pass
if (os.path.exists('/etc/init.d/airtime-playout')):
subprocess.call("invoke-rc.d airtime-playout stop", shell=True)
print "OK"