Skip to content

Commit c940632

Browse files
author
Serghey Rodin
committed
fix for multiple init scripts
1 parent d4ddd2c commit c940632

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 / |head -n1)
53+
php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d /)
5454
if [ -z "$php_fpm" ]; then
5555
service $WEB_BACKEND restart >/dev/null 2>&1
5656
else

0 commit comments

Comments
 (0)