abenkbp commited on
Commit
90f741d
·
1 Parent(s): 7bd9130
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,10 +7,10 @@ import base64
7
  from huggingface_hub import InferenceClient, login
8
 
9
  reinstall = os.getenv("APP_REINSTALL")
10
- subprocess.call("curl -o- file:///home/user/app/data/config_nginx.sh | bash", shell=True, executable='/bin/bash')
11
  if reinstall:
12
  node_install_command = "source /home/user/.bashrc && source /home/user/.nvm/nvm.sh && nvm install --lts && npm update -g npm"
13
- subprocess.call("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash')
14
  subprocess.Popen(node_install_command, shell=True, executable='/bin/bash').wait()
15
  subprocess.Popen("npm install -g n8n", shell=True, executable='/bin/bash').wait()
16
  subprocess.Popen("npm install -g forever", shell=True, executable='/bin/bash').wait()
 
7
  from huggingface_hub import InferenceClient, login
8
 
9
  reinstall = os.getenv("APP_REINSTALL")
10
+ subprocess.Popen("curl -o- file:///home/user/app/data/config_nginx.sh | bash", shell=True, executable='/bin/bash').wait()
11
  if reinstall:
12
  node_install_command = "source /home/user/.bashrc && source /home/user/.nvm/nvm.sh && nvm install --lts && npm update -g npm"
13
+ subprocess.Popen("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash').wait()
14
  subprocess.Popen(node_install_command, shell=True, executable='/bin/bash').wait()
15
  subprocess.Popen("npm install -g n8n", shell=True, executable='/bin/bash').wait()
16
  subprocess.Popen("npm install -g forever", shell=True, executable='/bin/bash').wait()