We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48101b1 commit f2872ddCopy full SHA for f2872dd
bin/v-change-sys-service-config
@@ -95,7 +95,7 @@ if [ "$update" = 'yes' ] && [ "$restart" != 'no' ]; then
95
96
if [ "$service" = 'php' ]; then
97
if [ "$WEB_SYSTEM" = "nginx" ]; then
98
- 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)
99
else
100
service=$WEB_SYSTEM
101
fi
0 commit comments