From 6b933047f46efec1aa747570f945344254227457 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 15 Dec 2017 17:25:28 +0000 Subject: gentoo resync : 15.12.2017 --- app-eselect/eselect-php/files/php-fpm-launcher-r3 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app-eselect/eselect-php/files/php-fpm-launcher-r3 (limited to 'app-eselect/eselect-php/files') diff --git a/app-eselect/eselect-php/files/php-fpm-launcher-r3 b/app-eselect/eselect-php/files/php-fpm-launcher-r3 new file mode 100644 index 000000000000..a2b6eabc4da5 --- /dev/null +++ b/app-eselect/eselect-php/files/php-fpm-launcher-r3 @@ -0,0 +1,11 @@ +#!/bin/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/@libdir@/${PHP_SLOT}/bin/php-fpm" "${@}" -- cgit v1.2.3