Update v-change-sys-service-config

This commit is contained in:
Denis Efremov 2016-12-31 18:23:33 +03:00 committed by GitHub
commit 48101b1665

View file

@ -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