Skip to content

Commit 9c9bcd3

Browse files
committed
Merge branch 'build_native_php' into php-fpm
2 parents 79ff841 + 770b7c2 commit 9c9bcd3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sapi/quickstart/linux/run-swoole-cli-builder-container.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ OPTIONS=''
1616
while [ $# -gt 0 ]; do
1717
case "$1" in
1818
--mirror)
19+
MIRROR="$2"
1920
case "$MIRROR" in
2021
china)
21-
MIRROR="$2"
2222
OPTIONS=" --mirror china "
2323
;;
24+
*)
25+
echo "$0 parameter error"
26+
exit 0
27+
;;
2428
esac
2529

2630
;;
@@ -32,6 +36,8 @@ bash setup-php-runtime.sh ${OPTIONS}
3236
export PATH=${__PROJECT__}/bin/runtime:$PATH
3337
alias php="php -d curl.cainfo=${__PROJECT__}/bin/runtime/cacert.pem -d openssl.cafile=${__PROJECT__}/bin/runtime/cacert.pem "
3438

39+
export COMPOSER_ALLOW_SUPERUSER=1
40+
3541
if [ "$MIRROR" = 'china' ]; then
3642
composer config -g repos.packagist composer https://mirrors.tencent.com/composer/
3743
fi

0 commit comments

Comments
 (0)