File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- JOB=$3
4-
5- COMMAND=$( echo " ${JOB} " | jq -r ' .command // ""' )
6- [[ " ${COMMAND} " =~ ^REDIS_VERSION= ([0-9\. ]+) ]] || exit 0
7-
8- PHP=$( echo " ${JOB} " | jq -r ' .php // ""' )
9- REDIS_VERSION=${BASH_REMATCH[1]}
10-
11- echo " SETUP: Installing ext-redis $REDIS_VERSION with PHP $PHP ..."
12- pecl install -f --configureoptions ' enable-redis-igbinary="yes" enable-redis-lzf="yes"' igbinary redis-${REDIS_VERSION}
13-
14- if [ $? -ne 0 ]; then
15- echo " ERROR: Installation of ext-redis $REDIS_VERSION with PHP $PHP failed."
16- exit 1
17- fi
18-
19- echo " extension=redis.so" > /etc/php/${PHP} /mods-available/redis.ini
3+ PHP_VERSION=" $1 "
4+ apt install make
5+ pecl install swoole
6+ echo " extension=swoole.so" > /etc/php/${PHP_VERSION} /mods-available/60-swoole.ini
7+ phpenmod -v ${PHP} -s cli swoole
You can’t perform that action at this time.
0 commit comments