mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -81,7 +81,7 @@ def status(version):
|
||||
# if data[0] == '':
|
||||
# return 'stop'
|
||||
# return 'start'
|
||||
sock_file = "/run/php/php${version}-fpm.sock"
|
||||
sock_file = "/run/php/php{}-fpm.sock".format(version)
|
||||
if os.path.exists(sock_file):
|
||||
return 'start'
|
||||
return 'stop'
|
||||
|
||||
Reference in New Issue
Block a user