add scripts/db_check.py for database connection test

This commit is contained in:
Reditus committed 2026-05-14 06:27:30 +01:00
1 parent 73a3428b1d
commit 573fb9858c
1 file changed
+7
+7
View File
@@ -0,0 +1,7 @@
import sys, psycopg2
try:
c = psycopg2.connect(host='localhost', port=int(sys.argv[1]), user='postgres', password='postgres', dbname='dune', connect_timeout=3)
c.close()
print('ok')
except:
pass