We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a3babe commit 34c6ee9Copy full SHA for 34c6ee9
1 file changed
bin/v-restart-web-backend
@@ -50,7 +50,7 @@ if [ -z "$WEB_BACKEND" ] || [ "$WEB_BACKEND" = 'remote' ]; then
50
fi
51
52
# Restart system
53
-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 -n1)
54
if [ -z "$php_fpm" ]; then
55
service $WEB_BACKEND restart >/dev/null 2>&1
56
else
0 commit comments