File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,14 @@ if [ ! -z "${PMA_USER_CONFIG_BASE64}" ]; then
28
28
echo " ${PMA_USER_CONFIG_BASE64} " | base64 -d > /etc/phpmyadmin/config.user.inc.php
29
29
fi
30
30
31
+ # start: Apache specific settings
31
32
if [ -n " ${APACHE_PORT+x} " ]; then
32
33
echo " Setting apache port to ${APACHE_PORT} ."
33
34
sed -i " s/VirtualHost \*:80/VirtualHost \*:${APACHE_PORT} /" /etc/apache2/sites-enabled/000-default.conf
34
35
sed -i " s/Listen 80/Listen ${APACHE_PORT} /" /etc/apache2/ports.conf
35
36
apachectl configtest
36
37
fi
38
+ # end: Apache specific settings
37
39
38
40
get_docker_secret () {
39
41
local env_var=" ${1} "
Original file line number Diff line number Diff line change @@ -35,4 +35,7 @@ for variant in apache fpm fpm-alpine; do
35
35
s/%%VARIANT%%/' " $variant " ' /;
36
36
s/%%CMD%%/' " ${cmd[$variant]} " ' /;
37
37
' " $variant /Dockerfile"
38
+ if [ " $variant " != " apache" ]; then
39
+ sed -i " /^# start: Apache specific settings$/,/^# end: Apache specific settings$/d" " $variant /docker-entrypoint.sh"
40
+ fi
38
41
done
You can’t perform that action at this time.
0 commit comments