diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2019-07-24 05:54:10 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2019-07-24 05:54:10 +0000 |
commit | bed7a51ed2c79f05cb1cf4708d4e128cfb23133a (patch) | |
tree | ec42f502556c869d54bc511d1c8f3248db80d566 /user/php7/php-fpm.initd | |
parent | 6574a30b9b98a3464ff4cebe381b3732a8dabfc3 (diff) | |
parent | d88486a76bb0d6bafb97fc9f0b5ae909f61b18e8 (diff) | |
download | packages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.tar.gz packages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.tar.bz2 packages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.tar.xz packages-bed7a51ed2c79f05cb1cf4708d4e128cfb23133a.zip |
Merge branch 'openrc-bashisms' into 'master'
Cleanup OpenRC init.d scripts, and more
See merge request adelie/packages!295
Diffstat (limited to 'user/php7/php-fpm.initd')
-rw-r--r-- | user/php7/php-fpm.initd | 7 |
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")" } |