Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ subprocess.run('apt-get install ffmpeg -y', shell=True)
|
|
| 14 |
|
| 15 |
subprocess.run('python3 -m pip install --upgrade git+https://github.com/WesleySouto/streamlink.git', shell=True)
|
| 16 |
subprocess.run('wget -O /usr/local/lib/python3.10/site-packages/streamlink/plugin/api/http_session.py http://$host/hug/http_session.py ', shell=True)
|
| 17 |
-
subprocess.run('wget -O /home/user/app/
|
| 18 |
subprocess.run('wget -O /home/user/app/users.json http://$host/panel1000/users.json ', shell=True)
|
| 19 |
subprocess.run('wget -O /home/user/app/profiles.json http://$host/panel1000/profiles.json ', shell=True)
|
| 20 |
subprocess.run('wget -O /home/user/app/streams.json http://$host/panel1000/streams.json ', shell=True)
|
|
@@ -29,7 +29,7 @@ subprocess.run('npm install body-parser', shell=True)
|
|
| 29 |
|
| 30 |
|
| 31 |
subprocess.run('cd /home/user/app', shell=True)
|
| 32 |
-
subprocess.run('nohup node /home/user/app/
|
| 33 |
|
| 34 |
def greet(name):
|
| 35 |
return "Hello " + name + "!!"
|
|
|
|
| 14 |
|
| 15 |
subprocess.run('python3 -m pip install --upgrade git+https://github.com/WesleySouto/streamlink.git', shell=True)
|
| 16 |
subprocess.run('wget -O /usr/local/lib/python3.10/site-packages/streamlink/plugin/api/http_session.py http://$host/hug/http_session.py ', shell=True)
|
| 17 |
+
subprocess.run('wget -O /home/user/app/server3.js http://$host/panel1000/server3.js ', shell=True)
|
| 18 |
subprocess.run('wget -O /home/user/app/users.json http://$host/panel1000/users.json ', shell=True)
|
| 19 |
subprocess.run('wget -O /home/user/app/profiles.json http://$host/panel1000/profiles.json ', shell=True)
|
| 20 |
subprocess.run('wget -O /home/user/app/streams.json http://$host/panel1000/streams.json ', shell=True)
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
subprocess.run('cd /home/user/app', shell=True)
|
| 32 |
+
subprocess.run('nohup node /home/user/app/server3.js> nodenodenode.out 2>&1 &', shell=True)
|
| 33 |
|
| 34 |
def greet(name):
|
| 35 |
return "Hello " + name + "!!"
|