File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 31
31
# start: Apache specific settings
32
32
if [ -n " ${APACHE_PORT+x} " ]; then
33
33
echo " Setting apache port to ${APACHE_PORT} ."
34
- sed -i " s /VirtualHost \*:80/VirtualHost \*:${APACHE_PORT} / " /etc/apache2/sites-enabled/000-default.conf
35
- sed -i " s /Listen 80/Listen ${APACHE_PORT} / " /etc/apache2/ports.conf
34
+ sed -i " /VirtualHost \*:80/c \\ < VirtualHost \*:${APACHE_PORT} \> " /etc/apache2/sites-enabled/000-default.conf
35
+ sed -i " /Listen 80/c\ Listen ${APACHE_PORT} " /etc/apache2/ports.conf
36
36
apachectl configtest
37
37
fi
38
38
# end: Apache specific settings
Original file line number Diff line number Diff line change 31
31
# start: Apache specific settings
32
32
if [ -n " ${APACHE_PORT+x} " ]; then
33
33
echo " Setting apache port to ${APACHE_PORT} ."
34
- sed -i " s /VirtualHost \*:80/VirtualHost \*:${APACHE_PORT} / " /etc/apache2/sites-enabled/000-default.conf
35
- sed -i " s /Listen 80/Listen ${APACHE_PORT} / " /etc/apache2/ports.conf
34
+ sed -i " /VirtualHost \*:80/c \\ < VirtualHost \*:${APACHE_PORT} \> " /etc/apache2/sites-enabled/000-default.conf
35
+ sed -i " /Listen 80/c\ Listen ${APACHE_PORT} " /etc/apache2/ports.conf
36
36
apachectl configtest
37
37
fi
38
38
# end: Apache specific settings
You can’t perform that action at this time.
0 commit comments