Initial commit

This commit is contained in:
QwenPaw committed 2026-06-19 06:38:31 +00:00
commit f45881dc88
161 files changed
+21597

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import pexpect, base64, time
with open('/tmp/deploy_script.sh', 'rb') as f:
b64 = base64.b64encode(f.read()).decode()
c = pexpect.spawn('ssh -q -o StrictHostKeyChecking=no root@210.16.161.214', encoding='utf-8', timeout=60)
c.expect('password:')
c.sendline('XHR521yhf')
c.expect('[$#]')
c.sendline(f'echo {b64} | base64 -d > /tmp/deploy_velobase.sh && chmod +x /tmp/deploy_velobase.sh && nohup bash /tmp/deploy_velobase.sh > /tmp/deploy_velobase.log 2>&1 & echo LAUNCHED=$!')
c.expect('[$#]')
print('LAUNCH:', c.before.strip()[-300:])
time.sleep(3)
c.sendline('tail -10 /tmp/deploy_velobase.log')
c.expect('[$#]')
print('LOG:', c.before.strip()[-500:])
c.sendline('exit')