Ver Fonte

Limit 1 line for service name

Denis Efremov há 9 anos atrás
pai
commit
f2872dd61e
1 ficheiros alterados com 1 adições e 1 exclusões
  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 /etc/init.d/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