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
+
1
7
## 7.3.0 2022-12-11 <dave at tiredofit dot ca >
2
8
3
9
### Added
Original file line number Diff line number Diff line change @@ -4,15 +4,21 @@ phpfpm_bootstrap() {
4
4
os=$(cat /etc/os-release |grep ^ID= | cut -d = -f2)
5
5
case ${os} in
6
6
"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
+ ;;
13
19
"debian" )
14
20
php_prefix="/etc/php/$(php -v | head -n 1 | awk '{print $2}' | cut -c 1-3)/"
15
- ;;
21
+ ;;
16
22
esac
17
23
18
24
case "${PHP_BASE}" in
Original file line number Diff line number Diff line change 1
1
#!/command/with-contenv /bin/bash
2
2
source /assets/functions/00-container
3
3
4
+
4
5
php_major_version="$(echo ${PHP_BASE} | cut -c 1-1)"
5
6
os=$(cat /etc/os-release |grep ^ID= | cut -d = -f2)
6
7
7
8
case ${os} in
8
9
"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
+ ;;
15
22
"debian" )
16
23
php_prefix="/etc/php/$(php -v | head -n 1 | awk '{print $2}' | cut -c 1-3)/"
17
- ;;
24
+ ;;
18
25
esac
19
26
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
23
30
24
31
enable_module () {
25
32
if [ -n "$1" ]; then
You can’t perform that action at this time.
0 commit comments