add scripts/db_check.py for database connection test
This commit is contained in:
1 parent
73a3428b1d
commit
573fb9858c
1 file changed
+7
@@ -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
|
||||||
Reference in new issue
Block a user