use disable/enable_apache_site on Ubuntu
Using the specific Apache2 tools a2ensite and a2dissite (used in the methods disable/enable_apache_site in lib/apache) should be the preferred way to disable the default site and to enable the horizon site. fixes bug #1298031 Change-Id: I2f247c0b6e605a330086a558e03e2c36666c55be
This commit is contained in:
parent
72eebd7865
commit
cbd97ca975
@ -114,11 +114,9 @@ function init_horizon {
|
||||
|
||||
local horizon_conf=/etc/$APACHE_NAME/$APACHE_CONF_DIR/horizon.conf
|
||||
if is_ubuntu; then
|
||||
# Clean up the old config name
|
||||
sudo rm -f /etc/apache2/sites-enabled/000-default
|
||||
# Be a good citizen and use the distro tools here
|
||||
disable_apache_site 000-default
|
||||
sudo touch $horizon_conf
|
||||
sudo a2ensite horizon.conf
|
||||
enable_apache_site horizon.conf
|
||||
elif is_fedora; then
|
||||
sudo sed '/^Listen/s/^.*$/Listen 0.0.0.0:80/' -i /etc/httpd/conf/httpd.conf
|
||||
elif is_suse; then
|
||||
|
Loading…
Reference in New Issue
Block a user