-installation tweaks

http://dev.sourcefabric.org/browse/CC-1802
This commit is contained in:
mkonecny 2011-01-26 08:23:22 -05:00
parent c3085c8edf
commit a2a8a8eae3
5 changed files with 39 additions and 15 deletions

View file

@ -22,9 +22,14 @@ def remove_user(username):
time.sleep(5)
os.system("deluser --remove-home " + username + " 1>/dev/null")
def get_current_script_dir():
current_script_dir = os.path.realpath(__file__)
index = current_script_dir.rindex('/')
return current_script_dir[0:index]
try:
os.system("python ./pypo-stop.py")
os.system("python %s/pypo-stop.py" % get_current_script_dir())
print "Removing log directories"
remove_path("/var/log/pypo")