Merge setup into launcher, fix DB connection, add CA cert management, and clean up redundant scripts

- 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
This commit is contained in:
Reditus committed 2026-05-15 17:58:03 +01:00
1 parent ca0a36d817
commit ac43d14b75
13 files changed
+892 -1308

No files matched your search

+10 -1
View File
@@ -1,6 +1,15 @@
import sys, psycopg2
try:
c = psycopg2.connect(host='localhost', port=int(sys.argv[1]), user='postgres', password='postgres', dbname='dune', connect_timeout=3)
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: