File tree Expand file tree Collapse file tree 3 files changed +36
-17
lines changed Expand file tree Collapse file tree 3 files changed +36
-17
lines changed Original file line number Diff line number Diff line change 1+ ## 7.3.1 2022-12-13 <dave at tiredofit dot ca >
2+
3+ ### Changed
4+ - Patchup for 8.2.x on Alpine systems
5+
6+
17## 7.3.0 2022-12-11 <dave at tiredofit dot ca >
28
39 ### Added
Original file line number Diff line number Diff line change @@ -4,15 +4,21 @@ phpfpm_bootstrap() {
44 os=$(cat /etc/os-release |grep ^ID= | cut -d = -f2)
55 case ${os} in
66 "alpine" )
7- if [ "${PHP_BASE}" = "8.1" ] ; then
8- php_prefix="/etc/php81/"
9- else
10- php_prefix="/etc/php$(php -v | head -n 1 | awk '{print $2}' | cut -c 1)/"
11- fi
12- ;;
7+ case "${PHP_BASE}" in
8+ 8.1 )
9+ php_prefix="/etc/php81/"
10+ ;;
11+ 8.2 )
12+ php_prefix="/etc/php82/"
13+ ;;
14+ * )
15+ php_prefix="/etc/php$(php -v | head -n 1 | awk '{print $2}' | cut -c 1)/"
16+ ;;
17+ esac
18+ ;;
1319 "debian" )
1420 php_prefix="/etc/php/$(php -v | head -n 1 | awk '{print $2}' | cut -c 1-3)/"
15- ;;
21+ ;;
1622 esac
1723
1824 case "${PHP_BASE}" in
Original file line number Diff line number Diff line change 11#!/command/with-contenv /bin/bash
22source /assets/functions/00-container
33
4+
45php_major_version="$(echo ${PHP_BASE} | cut -c 1-1)"
56os=$(cat /etc/os-release |grep ^ID= | cut -d = -f2)
67
78case ${os} in
89 "alpine" )
9- if [ "${PHP_BASE}" = "8.1" ] ; then
10- php_prefix="/etc/php81/"
11- else
12- php_prefix="/etc/php$(php -v | head -n 1 | awk '{print $2}' | cut -c 1)/"
13- fi
14- ;;
10+ case "${PHP_BASE}" in
11+ 8.1 )
12+ php_prefix="/etc/php81/"
13+ ;;
14+ 8.2 )
15+ php_prefix="/etc/php82/"
16+ ;;
17+ * )
18+ php_prefix="/etc/php$(php -v | head -n 1 | awk '{print $2}' | cut -c 1)/"
19+ ;;
20+ esac
21+ ;;
1522 "debian" )
1623 php_prefix="/etc/php/$(php -v | head -n 1 | awk '{print $2}' | cut -c 1-3)/"
17- ;;
24+ ;;
1825esac
1926
20- if [ "${PHP_ENABLE_OPENSSL,,}" = "true" ] && [ -f "${php_prefix}mods-available/openssl.ini" ]; then
21- export PHP_ENABLE_OPENSSL=FALSE;
22- fi;
27+ if [ "${PHP_ENABLE_OPENSSL,,}" = "true" ] && [ ! -f "${php_prefix}mods-available/openssl.ini" ]; then
28+ export PHP_ENABLE_OPENSSL=FALSE
29+ fi
2330
2431enable_module () {
2532 if [ -n "$1" ]; then
You can’t perform that action at this time.
0 commit comments