diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index 15b55f878..e407821b5 100755 --- a/plugins/php-apt/index.py +++ b/plugins/php-apt/index.py @@ -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'