Spade
Mini Shell
| Directory:~$ /proc/self/root/opt/cloudlinux/alt-php81/root/usr/bin/ |
| [Home] [System Details] [Kill Me] |
#!/bin/bash
set -e
PHP=(/opt/alt/php81/usr/bin/php)
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}"
)" &> /dev/null && pwd )
COMPOSER="${SCRIPT_DIR}/composer.phar"
if "${PHP[@]}" -r "if (extension_loaded('phar'))
exit(1);"; then
PHP+=(-d 'extension=phar.so')
fi
if "${PHP[@]}" -r "if (extension_loaded('json'))
exit(1);"; then
PHP+=(-d 'extension=json.so')
fi
"${PHP[@]}" ${COMPOSER} $*