Przeglądaj źródła

Merge pull request #1015 from Piterden/patch-3

Fixed restarting php daemon error. Ubuntu 16.04
Serghey Rodin 8 lat temu
rodzic
commit
54f55d2ce8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      bin/v-change-sys-service-config

+ 1 - 1
bin/v-change-sys-service-config

@@ -95,7 +95,7 @@ if [ "$update" = 'yes' ] && [ "$restart" != 'no' ]; then
 
     if [ "$service" = 'php' ]; then
         if [ "$WEB_SYSTEM" = "nginx" ]; then
-            service=$(ls /usr/sbin/php*fpm* |cut -f 4 -d /)
+            service=$(ls /etc/init.d/php*fpm* |cut -f 4 -d / |sed -n 1p)
         else
             service=$WEB_SYSTEM
         fi