chore: actualizar URL publica de APK a pacifictrans.almeira.com.co y sincronizacion de contenedores
This commit is contained in:
parent
bfb27f1dbc
commit
2471a5f218
@ -23,7 +23,7 @@ EVOLUTION_API_URL = "https://evolution.almeira.com.co"
|
|||||||
EVOLUTION_API_KEY = "EE49029EEB85-4568-8F81-C9FDFC6E2943"
|
EVOLUTION_API_KEY = "EE49029EEB85-4568-8F81-C9FDFC6E2943"
|
||||||
INSTANCE_NAME = "AutomataAlmeira"
|
INSTANCE_NAME = "AutomataAlmeira"
|
||||||
TARGET_PHONE = "573167455877"
|
TARGET_PHONE = "573167455877"
|
||||||
APK_URL = "https://drip-zone.online/PacifictransGo.apk"
|
APK_URL = "https://pacifictrans.almeira.com.co/PacifictransGo.apk"
|
||||||
|
|
||||||
ctx = ssl.create_default_context()
|
ctx = ssl.create_default_context()
|
||||||
ctx.check_hostname = False
|
ctx.check_hostname = False
|
||||||
@ -50,11 +50,11 @@ def main():
|
|||||||
|
|
||||||
stdin, stdout, stderr = ssh.exec_command("docker ps --format '{{.Names}}'")
|
stdin, stdout, stderr = ssh.exec_command("docker ps --format '{{.Names}}'")
|
||||||
containers = [c.strip() for c in stdout.read().decode('utf-8').splitlines() if c.strip()]
|
containers = [c.strip() for c in stdout.read().decode('utf-8').splitlines() if c.strip()]
|
||||||
drip_containers = [c for c in containers if 'drip' in c.lower() or 'bfmno' in c.lower()]
|
target_containers = [c for c in containers if any(k in c.lower() for k in ['tayk', 'pacific', 'bfmno', 'drip'])]
|
||||||
|
|
||||||
for c in drip_containers:
|
for c in target_containers:
|
||||||
ssh.exec_command(f"docker cp {REMOTE_APK} {c}:/app/public/PacifictransGo.apk 2>/dev/null || true")
|
ssh.exec_command(f"docker cp {REMOTE_APK} {c}:/app/public/PacifictransGo.apk 2>/dev/null || true")
|
||||||
print(f" -> Sincronizado en contenedor público: {c}", flush=True)
|
print(f" -> Sincronizado en contenedor: {c}", flush=True)
|
||||||
|
|
||||||
ssh.close()
|
ssh.close()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user