On Fedora by default the *.conf imported only from
the /etc/httpd/conf.d/.
Changing the default config name to horizon.conf with all
distribution in order to have a simple logic.
Change-Id: I08c3e825f697640fd73ac1f9c569f313abc3c04f
| ... | ... |
@@ -106,13 +106,13 @@ function init_horizon() {
|
| 106 | 106 |
sudo mkdir -p $HORIZON_DIR/.blackhole |
| 107 | 107 |
|
| 108 | 108 |
HORIZON_REQUIRE='' |
| 109 |
- local horizon_conf=/etc/$APACHE_NAME/$APACHE_CONF_DIR/horizon |
|
| 109 |
+ local horizon_conf=/etc/$APACHE_NAME/$APACHE_CONF_DIR/horizon.conf |
|
| 110 | 110 |
if is_ubuntu; then |
| 111 | 111 |
# Clean up the old config name |
| 112 | 112 |
sudo rm -f /etc/apache2/sites-enabled/000-default |
| 113 | 113 |
# Be a good citizen and use the distro tools here |
| 114 | 114 |
sudo touch $horizon_conf |
| 115 |
- sudo a2ensite horizon |
|
| 115 |
+ sudo a2ensite horizon.conf |
|
| 116 | 116 |
# WSGI isn't enabled by default, enable it |
| 117 | 117 |
sudo a2enmod wsgi |
| 118 | 118 |
elif is_fedora; then |