Update index.py

This commit is contained in:
Mr Chen
2024-10-01 15:39:00 +08:00
parent 7e11e8138e
commit f979fd32e3
+7 -4
View File
@@ -135,10 +135,6 @@ def returnCfg():
return data
def status():
return 'stop'
def __release_port(port):
from collections import namedtuple
try:
@@ -249,6 +245,13 @@ def pgOp(method):
return data[1]
def status():
sock = '/tmp/pgadmin4.sock'
if os.path.exists(sock):
return 'start'
return 'stop'
def start():
initCfg()
openPort()