Merge "Configure horizon when using /etc/apache2."
This commit is contained in:
commit
ad868bfe27
@ -33,8 +33,9 @@ if [ -f /etc/debian_version ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Pick up on any config changes other elements may have done
|
# Pick up on any config changes other elements may have done
|
||||||
|
# if service is not running reload isnt sufficient, so restart
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
service apache2 reload
|
service apache2 reload || service apache2 restart
|
||||||
elif [ -f /etc/yum.conf ]; then
|
elif [ -f /etc/yum.conf ]; then
|
||||||
service httpd reload
|
service httpd reload || service httpd restart
|
||||||
fi
|
fi
|
||||||
|
@ -5,7 +5,9 @@ install-packages libapache2-mod-wsgi
|
|||||||
|
|
||||||
if [ -d /etc/apache2 ]; then
|
if [ -d /etc/apache2 ]; then
|
||||||
ln -s /etc/httpd/conf.d/horizon.conf /etc/apache2/sites-available/horizon.conf
|
ln -s /etc/httpd/conf.d/horizon.conf /etc/apache2/sites-available/horizon.conf
|
||||||
ln -s /etc/httpd/sites-available/horizon.conf /etc/apache2/sites-enabled/horizon.conf
|
ln -s /etc/httpd/conf.d/horizon.conf /etc/apache2/sites-enabled/horizon.conf
|
||||||
|
ln -s /var/log/apache2 /var/log/httpd
|
||||||
|
rm -f /etc/apache2/sites-enabled/{000-default.conf,default.conf,default-ssl.conf}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
os-svc-install -n horizon -u horizon -r /opt/stack/horizon
|
os-svc-install -n horizon -u horizon -r /opt/stack/horizon
|
||||||
|
Loading…
Reference in New Issue
Block a user