Skip to content

Commit f2a18c0

Browse files
committed
Two small fixes for openSUSE support
- Use right package files for openSUSE in tools/info.sh - Use a2enmod to enable the wsgi apache module Change-Id: I51e3019be32dc0938674c9c8d285a55f5b023707
1 parent 63ea318 commit f2a18c0

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

lib/horizon

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function init_horizon() {
7979
# Be a good citizen and use the distro tools here
8080
sudo touch /etc/$APACHE_NAME/$APACHE_CONF
8181
sudo a2ensite horizon
82-
# WSGI doesn't enable by default, enable it
82+
# WSGI isn't enabled by default, enable it
8383
sudo a2enmod wsgi
8484
elif is_fedora; then
8585
APACHE_NAME=httpd
@@ -88,9 +88,8 @@ function init_horizon() {
8888
elif is_suse; then
8989
APACHE_NAME=apache2
9090
APACHE_CONF=vhosts.d/horizon.conf
91-
# Append wsgi to the list of modules to load
92-
grep -q "^APACHE_MODULES=.*wsgi" /etc/sysconfig/apache2 ||
93-
sudo sed '/^APACHE_MODULES=/s/^\(.*\)"$/\1 wsgi"/' -i /etc/sysconfig/apache2
91+
# WSGI isn't enabled by default, enable it
92+
sudo a2enmod wsgi
9493
else
9594
exit_distro_not_supported "apache configuration"
9695
fi

tools/info.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ if is_ubuntu; then
9292
PKG_DIR=$FILES/apts
9393
elif is_fedora; then
9494
PKG_DIR=$FILES/rpms
95+
elif is_suse; then
96+
PKG_DIR=$FILES/rpms-suse
9597
else
9698
exit_distro_not_supported "list of packages"
9799
fi

0 commit comments

Comments
 (0)