Skip to content

Commit

Permalink
Update index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Oct 1, 2024
1 parent 7d35f9d commit cdb27c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/pgadmin/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def getHomePage():


def contentReplace(content):
cfg = getCfg()
service_path = mw.getServerDir()
tmp = mw.execShell(
'cat /dev/urandom | head -n 32 | md5sum | head -c 16')
tmp = mw.execShell('cat /dev/urandom | head -n 32 | md5sum | head -c 16')
blowfish_secret = tmp[0].strip()

content = content.replace('{$ROOT_PATH}', mw.getRootDir())
Expand Down Expand Up @@ -254,7 +254,7 @@ def stop():
conf = getConf()
if os.path.exists(conf):
os.remove(conf)

delPort()
mw.restartWeb()
return 'ok'
Expand Down

0 comments on commit cdb27c5

Please sign in to comment.