14 lines
389 B
Python
14 lines
389 B
Python
import os
|
|
import paramiko
|
|
|
|
pw = os.environ["DEPLOY_PASSWORD"]
|
|
c = paramiko.SSHClient()
|
|
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
c.connect("20.191.152.26", username="wakka", password=pw, timeout=30)
|
|
_, o, _ = c.exec_command(
|
|
"curl -s http://127.0.0.1:7777/guest-customer-service | grep CHATWOOT_CONFIG | head -c 300",
|
|
timeout=30,
|
|
)
|
|
print(o.read().decode())
|
|
c.close()
|