mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Limit 1 line for service name
This commit is contained in:
parent
48101b1665
commit
f2872dd61e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue