diff options
Diffstat (limited to 'app-eselect/eselect-php/files/php-fpm-launcher-r2')
-rw-r--r-- | app-eselect/eselect-php/files/php-fpm-launcher-r2 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app-eselect/eselect-php/files/php-fpm-launcher-r2 b/app-eselect/eselect-php/files/php-fpm-launcher-r2 new file mode 100644 index 000000000000..3a6b2720fa67 --- /dev/null +++ b/app-eselect/eselect-php/files/php-fpm-launcher-r2 @@ -0,0 +1,13 @@ +#!/bin/sh + +. /lib/gentoo/functions.sh + +# If there are no arguments, then "shift" will fail (bug 626496). +if [ $# -eq 0 ]; then + PHP_SLOT=$(eselect php show fpm) +else + PHP_SLOT=$1 + shift +fi + +exec "/usr/$(get_libdir)/${PHP_SLOT}/bin/php-fpm" "${@}" |