Skip to content

Commit d7eb12d

Browse files
author
Serghey Rodin
committed
fix for multiple php-fpm init scripts
1 parent 80f65d5 commit d7eb12d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-restart-web-backend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if [ -z "$WEB_BACKEND" ] || [ "$WEB_BACKEND" = 'remote' ]; then
5050
fi
5151

5252
# Restart system
53-
php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d /)
53+
php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d / |head -n 1)
5454
if [ -z "$php_fpm" ]; then
5555
service $WEB_BACKEND restart >/dev/null 2>&1
5656
else

0 commit comments

Comments
 (0)