Update index.py
This commit is contained in:
parent
50d12407c9
commit
3fb8406e7b
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue