瀏覽代碼

fix for multiple php-fpm init scripts

Serghey Rodin 8 年之前
父節點
當前提交
d7eb12defa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bin/v-restart-web-backend

+ 1 - 1
bin/v-restart-web-backend

@@ -50,7 +50,7 @@ if [ -z "$WEB_BACKEND" ] || [ "$WEB_BACKEND" = 'remote' ]; then
 fi
 fi
 
 
 # Restart system
 # 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
 if [ -z "$php_fpm" ]; then
     service $WEB_BACKEND restart >/dev/null 2>&1
     service $WEB_BACKEND restart >/dev/null 2>&1
 else
 else