summaryrefslogtreecommitdiff
path: root/user/php7/php-fpm.initd
diff options
context:
space:
mode:
Diffstat (limited to 'user/php7/php-fpm.initd')
-rw-r--r--user/php7/php-fpm.initd7
1 files changed, 4 insertions, 3 deletions
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")"
}