Skip to content

Commit cd3cdcc

Browse files
committed
Switch from apachectl to apache2, preventing error message on lxc.
1 parent 1acf431 commit cd3cdcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/upgrade/0.10.0-190430.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)