From afd9f80f59e6b83e09449ea1a2627a5918f24981 Mon Sep 17 00:00:00 2001 From: mkonecny Date: Fri, 17 Dec 2010 15:39:36 -0500 Subject: [PATCH] -removed errors and warning from displaying in the console during pypo install/uninstall --- pypo/install/pypo-install.py | 4 ++-- pypo/install/pypo-uninstall.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pypo/install/pypo-install.py b/pypo/install/pypo-install.py index 0f7737ad3..7634e1263 100644 --- a/pypo/install/pypo-install.py +++ b/pypo/install/pypo-install.py @@ -101,7 +101,7 @@ try: os.system("chown -R pypo:pypo /etc/service/pypo-push") 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") create_path("/etc/service/pypo-liquidsoap") create_path("/etc/service/pypo-liquidsoap/log") @@ -132,7 +132,7 @@ try: #os.symlink(BASE_PATH+"bin/pypo-log.sh", "/usr/local/bin/") - + print "Install complete." except Exception, e: print "exception:" + str(e) diff --git a/pypo/install/pypo-uninstall.py b/pypo/install/pypo-uninstall.py index f3dcfb079..c50c91abe 100644 --- a/pypo/install/pypo-uninstall.py +++ b/pypo/install/pypo-uninstall.py @@ -21,8 +21,7 @@ def remove_user(username): print "Waiting for processes to close..." time.sleep(5) - os.system("delgroup " + username) - os.system("deluser --remove-home " + username) + os.system("deluser --remove-home " + username + " > /dev/null") #pypo group appears to be deleted when removing user. #os.system("delgroup " + username) @@ -45,6 +44,7 @@ try: print "Removing daemontool script pypo-liquidsoap" remove_path("rm -rf /etc/service/pypo-liquidsoap") - #remove_user("pypo") + remove_user("pypo") + print "Uninstall complete." except Exception, e: print "exception:" + str(e) \ No newline at end of file