CC-2758: Make airtime-install script Debian/Ubuntu compatible

-uninstall script added
This commit is contained in:
Martin Konecny 2011-10-28 12:35:58 -04:00
parent 153e0df409
commit 56edfe4e68
15 changed files with 359 additions and 64 deletions

View file

@ -0,0 +1,15 @@
from subprocess import Popen
import os
import sys
if os.geteuid() != 0:
print "Please run this as root."
sys.exit(1)
try:
#stop pypo and liquidsoap processes
print "Waiting for pypo processes to stop..."
p = Popen("/etc/init.d/airtime-playout stop", shell=True)
sts = os.waitpid(p.pid, 0)[1]
except Exception, e:
print e