From d7eb12defa542117db6f74a4b4ead58230518141 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sat, 30 Dec 2017 12:51:37 +0200 Subject: [PATCH] fix for multiple php-fpm init scripts --- bin/v-restart-web-backend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-restart-web-backend b/bin/v-restart-web-backend index b18f6abc7..e1d8ebe94 100755 --- a/bin/v-restart-web-backend +++ b/bin/v-restart-web-backend @@ -50,7 +50,7 @@ if [ -z "$WEB_BACKEND" ] || [ "$WEB_BACKEND" = 'remote' ]; then fi # Restart system -php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d /) +php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d / |head -n 1) if [ -z "$php_fpm" ]; then service $WEB_BACKEND restart >/dev/null 2>&1 else