Explorar o código

Update v-change-sys-service-config

Denis Efremov %!s(int64=9) %!d(string=hai) anos
pai
achega
48101b1665
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      bin/v-change-sys-service-config

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

@@ -95,8 +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=$(service --status-all | grep -e '.*+.*php' | sed 's/.*\ //')
+            service=$(ls /etc/init.d/php*fpm* |cut -f 4 -d /)
         else
             service=$WEB_SYSTEM
         fi