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 3131# start: Apache specific settings
3232if [ -n " ${APACHE_PORT+x} " ]; then
3333 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
3636 apachectl configtest
3737fi
3838# end: Apache specific settings
Original file line number Diff line number Diff line change 3131# start: Apache specific settings
3232if [ -n " ${APACHE_PORT+x} " ]; then
3333 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
3636 apachectl configtest
3737fi
3838# end: Apache specific settings
You can’t perform that action at this time.
0 commit comments