Fixed restarting php daemon error. Ubuntu 16.04

```bash
# cat /proc/version
Linux version 4.4.0-21-generic (buildd@lgw01-21) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) ) #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016
```
This commit is contained in:
Denis Efremov 2016-12-31 00:12:26 +03:00 committed by GitHub
commit 02a164128b

View file

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