Skip to content

Commit edcac49

Browse files
committed
Release 7.3.1 - See CHANGELOG.md
1 parent 1427ea8 commit edcac49

File tree

3 files changed

+36
-17
lines changed

3 files changed

+36
-17
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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

install/assets/functions/20-php-fpm

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff 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

install/usr/sbin/php-ext

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
11
#!/command/with-contenv /bin/bash
22
source /assets/functions/00-container
33

4+
45
php_major_version="$(echo ${PHP_BASE} | cut -c 1-1)"
56
os=$(cat /etc/os-release |grep ^ID= | cut -d = -f2)
67

78
case ${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+
;;
1825
esac
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

2431
enable_module () {
2532
if [ -n "$1" ]; then

0 commit comments

Comments
 (0)