mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Added chown to bower_components directory
This commit is contained in:
parent
50beeb93bc
commit
24e36ba26d
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@ class SetupFactory(object):
|
|||
print("Changing permissions of files...")
|
||||
#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)
|
||||
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("1. ./coco-mongodb")
|
||||
|
|
Loading…
Reference in a new issue