Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit b691991

Browse files
committed
ISSUE 43: Take into account that comment characters might not be at the start of the line.
1 parent 83ca9ff commit b691991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/apache-bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ if [[ ${OPTS_APACHE_MOD_SSL_ENABLED} == true ]] && [[ ! -f ${OPTS_APP_HOME_DIR}/
105105
# Enable the SSL VirtualHosts configuration
106106
sed -i \
107107
-e 's~^<VirtualHost \*:80 \*:8443>$~<VirtualHost \*:443>~g' \
108-
-e '/<IfModule mod_ssl.c>/,/<\/IfModule>/ s~^#~~' \
108+
-e '/<IfModule mod_ssl.c>/,/<\/IfModule>/ s~\( *\)\(#\( \([^ ]\)\)\?\)\(.*\)$~\1\4\5~' \
109109
${OPTS_APP_HOME_DIR}/vhost-ssl.conf
110110
fi
111111

0 commit comments

Comments
 (0)