From 2707df6cc761dcc2341faa8bafec5b4b4fa33e4d Mon Sep 17 00:00:00 2001 From: Max Rees Date: Mon, 22 Jul 2019 20:15:07 -0400 Subject: system/*, user/*: remove bashisms from initd scripts --- user/php7/php-fpm.initd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'user/php7/php-fpm.initd') diff --git a/user/php7/php-fpm.initd b/user/php7/php-fpm.initd index 46c65ec2e..88a87d458 100644 --- a/user/php7/php-fpm.initd +++ b/user/php7/php-fpm.initd @@ -51,9 +51,10 @@ start_pre() { # If unix socket is used (instead of TCP/IP), then ensure that the # directory exists and has correct privileges. local listen="$(conf_get listen)" - if [ "${listen:0:1}" = "/" ]; then - checkpath -d -o $user:$group "$(dirname "$listen")" - fi + case "$listen" in + /*) + checkpath -d -o $user:$group "$(dirname "$listen")";; + esac checkpath -d "$(dirname "$pidfile")" } -- cgit v1.2.3-60-g2f50