The previous apache/horizon a688bc65104e7d8998ffdb321d67a9f33df6997e
change left horizon disabled on Fedora.
Closes-Bug: #1326126
Change-Id: I79f84bb63471f84c6b37538e8dfe2bcca3ce3eac
| ... | ... |
@@ -123,10 +123,20 @@ function init_horizon {
|
| 123 | 123 |
fi |
| 124 | 124 |
|
| 125 | 125 |
local horizon_conf=$(apache_site_config_for horizon) |
| 126 |
+ |
|
| 127 |
+ # Configure apache to run horizon |
|
| 128 |
+ sudo sh -c "sed -e \" |
|
| 129 |
+ s,%USER%,$APACHE_USER,g; |
|
| 130 |
+ s,%GROUP%,$APACHE_GROUP,g; |
|
| 131 |
+ s,%HORIZON_DIR%,$HORIZON_DIR,g; |
|
| 132 |
+ s,%APACHE_NAME%,$APACHE_NAME,g; |
|
| 133 |
+ s,%DEST%,$DEST,g; |
|
| 134 |
+ s,%HORIZON_REQUIRE%,$HORIZON_REQUIRE,g; |
|
| 135 |
+ \" $FILES/apache-horizon.template >$horizon_conf" |
|
| 136 |
+ |
|
| 126 | 137 |
if is_ubuntu; then |
| 127 | 138 |
disable_apache_site 000-default |
| 128 | 139 |
sudo touch $horizon_conf |
| 129 |
- enable_apache_site horizon |
|
| 130 | 140 |
elif is_fedora; then |
| 131 | 141 |
sudo sed '/^Listen/s/^.*$/Listen 0.0.0.0:80/' -i /etc/httpd/conf/httpd.conf |
| 132 | 142 |
elif is_suse; then |
| ... | ... |
@@ -134,20 +144,12 @@ function init_horizon {
|
| 134 | 134 |
else |
| 135 | 135 |
exit_distro_not_supported "horizon apache configuration" |
| 136 | 136 |
fi |
| 137 |
+ enable_apache_site horizon |
|
| 137 | 138 |
|
| 138 | 139 |
# Remove old log files that could mess with how devstack detects whether Horizon |
| 139 | 140 |
# has been successfully started (see start_horizon() and functions::screen_it()) |
| 140 | 141 |
sudo rm -f /var/log/$APACHE_NAME/horizon_* |
| 141 | 142 |
|
| 142 |
- # Configure apache to run horizon |
|
| 143 |
- sudo sh -c "sed -e \" |
|
| 144 |
- s,%USER%,$APACHE_USER,g; |
|
| 145 |
- s,%GROUP%,$APACHE_GROUP,g; |
|
| 146 |
- s,%HORIZON_DIR%,$HORIZON_DIR,g; |
|
| 147 |
- s,%APACHE_NAME%,$APACHE_NAME,g; |
|
| 148 |
- s,%DEST%,$DEST,g; |
|
| 149 |
- s,%HORIZON_REQUIRE%,$HORIZON_REQUIRE,g; |
|
| 150 |
- \" $FILES/apache-horizon.template >$horizon_conf" |
|
| 151 | 143 |
} |
| 152 | 144 |
|
| 153 | 145 |
# install_horizon() - Collect source and prepare |