mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
parent
99ead5d193
commit
8ea2a80088
2 changed files with 8 additions and 2 deletions
|
@ -38,6 +38,9 @@ class MongoDB(Dependency):
|
|||
def install_dependencies(self):
|
||||
install_directory = self.config.directory.bin_directory + os.sep + u"mongo"
|
||||
import shutil
|
||||
if os.path.exists(install_directory):
|
||||
print(u"Skipping creation of " + install_directory + " because it exists.")
|
||||
else:
|
||||
shutil.copytree(self.findUnzippedMongoBinPath(),install_directory)
|
||||
|
||||
def findUnzippedMongoBinPath(self):
|
||||
|
|
|
@ -49,6 +49,9 @@ class Node(Dependency):
|
|||
print("Copying node into /usr/local/bin/...")
|
||||
shutil.copy(unzipped_node_path + os.sep + "bin" + os.sep + "node","/usr/local/bin/")
|
||||
os.chmod("/usr/local/bin/node",S_IRWXG|S_IRWXO|S_IRWXU)
|
||||
if os.path.exists(install_directory):
|
||||
print(u"Skipping creation of " + install_directory + " because it exists.")
|
||||
else:
|
||||
shutil.copytree(self.findUnzippedNodePath(),install_directory)
|
||||
wants_to_upgrade = True
|
||||
if self.check_if_executable_installed(u"npm"):
|
||||
|
|
Loading…
Reference in a new issue