-removed errors and warning from displaying in the console during pypo install/uninstall

This commit is contained in:
mkonecny 2010-12-17 15:39:36 -05:00
parent 1c16f6f9e7
commit afd9f80f59
2 changed files with 5 additions and 5 deletions

View file

@ -101,7 +101,7 @@ try:
os.system("chown -R pypo:pypo /etc/service/pypo-push") os.system("chown -R pypo:pypo /etc/service/pypo-push")
print "Installing daemontool script pypo-liquidsoap" print "Installing daemontool script pypo-liquidsoap"
os.system("svc -dk /etc/service/pypo-liquidsoap") os.system("svc -dk /etc/service/pypo-liquidsoap > /dev/null 2>&1")
os.system("killall liquidsoap") os.system("killall liquidsoap")
create_path("/etc/service/pypo-liquidsoap") create_path("/etc/service/pypo-liquidsoap")
create_path("/etc/service/pypo-liquidsoap/log") create_path("/etc/service/pypo-liquidsoap/log")
@ -132,7 +132,7 @@ try:
#os.symlink(BASE_PATH+"bin/pypo-log.sh", "/usr/local/bin/") #os.symlink(BASE_PATH+"bin/pypo-log.sh", "/usr/local/bin/")
print "Install complete."
except Exception, e: except Exception, e:
print "exception:" + str(e) print "exception:" + str(e)

View file

@ -21,8 +21,7 @@ def remove_user(username):
print "Waiting for processes to close..." print "Waiting for processes to close..."
time.sleep(5) time.sleep(5)
os.system("delgroup " + username) os.system("deluser --remove-home " + username + " > /dev/null")
os.system("deluser --remove-home " + username)
#pypo group appears to be deleted when removing user. #pypo group appears to be deleted when removing user.
#os.system("delgroup " + username) #os.system("delgroup " + username)
@ -45,6 +44,7 @@ try:
print "Removing daemontool script pypo-liquidsoap" print "Removing daemontool script pypo-liquidsoap"
remove_path("rm -rf /etc/service/pypo-liquidsoap") remove_path("rm -rf /etc/service/pypo-liquidsoap")
#remove_user("pypo") remove_user("pypo")
print "Uninstall complete."
except Exception, e: except Exception, e:
print "exception:" + str(e) print "exception:" + str(e)