Fixing Ubuntu code slightly.

This commit is contained in:
Elliott Seyler 2015-01-11 19:01:01 -08:00
parent 9465a41efd
commit 33b505bd87

View file

@ -170,3 +170,11 @@ class LinuxSetup(SetupFactory):
return()
else:
exit(1)
else:
print("NodeJS and MongoDB installed successfully. "
"Staring MongoDB.")
try:
subprocess.check_call(["service", "mongod", "start"])
except subprocess.CalledProcessError as err:
print("Mongo failed to start. Aborting.")
exit(1)