Added chown to bower_components directory

This commit is contained in:
Michael Schmatz 2014-01-08 18:43:06 -05:00
parent 50beeb93bc
commit 24e36ba26d

View file

@ -56,6 +56,9 @@ class SetupFactory(object):
print("Changing permissions of files...") print("Changing permissions of files...")
#TODO: Make this more robust and portable(doesn't pose security risk though) #TODO: Make this more robust and portable(doesn't pose security risk though)
subprocess.call("chmod -R 755 " + self.config.directory.root_dir + os.sep + "coco" + os.sep + "bin",shell=True) subprocess.call("chmod -R 755 " + self.config.directory.root_dir + os.sep + "coco" + os.sep + "bin",shell=True)
chown_command = "chown -R " + os.getenv("SUDO_USER") + " bower_components"
chown_directory = self.config.directory.root_dir + os.sep + "coco"
subprocess.call(chown_command,shell=True,cwd=chown_directory)
print("Done! If you want to start the server, head into /coco/bin and run ") print("Done! If you want to start the server, head into /coco/bin and run ")
print("1. ./coco-mongodb") print("1. ./coco-mongodb")