Merge pull request #1015 from Piterden/patch-3

Fixed restarting php daemon error. Ubuntu 16.04
This commit is contained in:
Serghey Rodin 2017-12-28 14:39:05 +02:00 committed by GitHub
commit 54f55d2ce8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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