diff --git a/scripts/db_check.py b/scripts/db_check.py new file mode 100644 index 0000000..7e42eb7 --- /dev/null +++ b/scripts/db_check.py @@ -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 \ No newline at end of file