Update index.py

This commit is contained in:
dami 2026-05-07 16:53:30 +08:00
parent 50d12407c9
commit 3fb8406e7b
1 changed files with 1 additions and 1 deletions

View File

@ -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'