- Consolidate setup.ps1, setup.bat, setup.sh into launcher.ps1 (option 2) - Merge install-ca-cert.bat and clean-ca-certs.bat into launcher.ps1 (options 4-5) - Remove broken local VM direct DB connection path (DB is inside Kubernetes) - Fix factory.py overriding database.host with server.local_ip - Add password masking (Read-Host -AsSecureString) in setup flow - Fix SSH key detection to prioritize battlegroup key path - Fix SSH test output redirect (*> -> 2>) - Delete redundant scripts and debug helpers - Update .gitignore with new patterns
16 lines
429 B
Python
16 lines
429 B
Python
import sys, psycopg2
|
|
try:
|
|
host = 'localhost'
|
|
port = int(sys.argv[1])
|
|
i = 2
|
|
while i < len(sys.argv):
|
|
if sys.argv[i] == '-host' and i + 1 < len(sys.argv):
|
|
host = sys.argv[i + 1]
|
|
i += 2
|
|
else:
|
|
i += 1
|
|
c = psycopg2.connect(host=host, port=port, user='postgres', password='postgres', dbname='dune', connect_timeout=3)
|
|
c.close()
|
|
print('ok')
|
|
except:
|
|
pass |