File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ for ipaddr in $(ls /usr/local/hestia/data/ips/ 2>/dev/null); do
208208
209209 if [ " $WEB_SYSTEM " = " apache2" ]; then
210210 echo " (*) Adding unassigned hosts configuration to Apache..."
211- if [ -z " $( /usr/sbin/apachectl -v | grep Apache/2.4) " ]; then
211+ if [ -z " $( /usr/sbin/apache2 -v | grep Apache/2.4) " ]; then
212212 echo " NameVirtualHost $ipaddr :$WEB_PORT " > $web_conf
213213 fi
214214 echo " Listen $ipaddr :$WEB_PORT " >> $web_conf
@@ -217,7 +217,7 @@ for ipaddr in $(ls /usr/local/hestia/data/ips/ 2>/dev/null); do
217217 sed -i ' s/directPORT/' $WEB_PORT ' /g' $web_conf
218218
219219 if [ " $WEB_SSL " = ' mod_ssl' ]; then
220- if [ -z " $( /usr/sbin/apachectl -v | grep Apache/2.4) " ]; then
220+ if [ -z " $( /usr/sbin/apache2 -v | grep Apache/2.4) " ]; then
221221 sed -i " 1s/^/NameVirtualHost $ipaddr :$WEB_SSL_PORT \n/" $web_conf
222222 fi
223223 sed -i " 1s/^/Listen $ipaddr :$WEB_SSL_PORT \n/" $web_conf
You can’t perform that action at this time.
0 commit comments