v2: ID verification by state, 15 photos/5 albums, 20 quick replies, logo, mobile polish
This commit is contained in:
26
deploy/_read_onsethost_env.py
Normal file
26
deploy/_read_onsethost_env.py
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
import paramiko
|
||||
|
||||
PASS = "Bbt9115xty9176!"
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
c.connect("10.10.0.10", username="localadministrator", password=PASS, timeout=30)
|
||||
paths = [
|
||||
"/home/localadministrator/coder/onsethost/.env.local",
|
||||
"/data/coolify/applications/shuurwefh5ipw3qfvmbq4vic/.env",
|
||||
]
|
||||
for p in paths:
|
||||
print(f"\n=== {p} ===")
|
||||
_, o, e = c.exec_command(f"grep -i cloudflare {p} 2>/dev/null || echo missing", timeout=20)
|
||||
o.channel.recv_exit_status()
|
||||
text = (o.read() + e.read()).decode()
|
||||
for line in text.splitlines():
|
||||
if "=" in line:
|
||||
k, _, v = line.partition("=")
|
||||
v = v.strip().strip('"')
|
||||
if len(v) > 16:
|
||||
v = v[:12] + "..." + v[-4:]
|
||||
print(f"{k}={v}")
|
||||
else:
|
||||
print(line)
|
||||
c.close()
|
||||
Reference in New Issue
Block a user