Skip to content

Commit 53e1750

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Fix Apache Site configuration for openSUSE"
2 parents da2fe19 + 633a129 commit 53e1750

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/apache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function install_apache_wsgi {
9090
# /etc/apache2/sites-available/. a2ensite and a2dissite need the entire file name to work. The default
9191
# sites' files are default and default-ssl.
9292
#
93-
# On Fedora, any file in /etc/httpd/conf.d/ whose name ends with .conf is enabled.
93+
# On Fedora and openSUSE, any file in /etc/httpd/conf.d/ whose name ends with .conf is enabled.
9494
#
9595
# On RHEL and CentOS, things should hopefully work as in Fedora.
9696
#
@@ -113,7 +113,7 @@ function apache_site_config_for {
113113
# Ubuntu 14.04 - Apache 2.4
114114
echo $APACHE_CONF_DIR/${site}.conf
115115
fi
116-
elif is_fedora; then
116+
elif is_fedora || is_suse; then
117117
# fedora conf.d is only imported if it ends with .conf so this is approx the same
118118
local enabled_site_file="$APACHE_CONF_DIR/${site}.conf"
119119
if [ -f $enabled_site_file ]; then
@@ -129,7 +129,7 @@ function enable_apache_site {
129129
local site=$@
130130
if is_ubuntu; then
131131
sudo a2ensite ${site}
132-
elif is_fedora; then
132+
elif is_fedora || is_suse; then
133133
local enabled_site_file="$APACHE_CONF_DIR/${site}.conf"
134134
# Do nothing if site already enabled or no site config exists
135135
if [[ -f ${enabled_site_file}.disabled ]] && [[ ! -f ${enabled_site_file} ]]; then
@@ -143,7 +143,7 @@ function disable_apache_site {
143143
local site=$@
144144
if is_ubuntu; then
145145
sudo a2dissite ${site}
146-
elif is_fedora; then
146+
elif is_fedora || is_suse; then
147147
local enabled_site_file="$APACHE_CONF_DIR/${site}.conf"
148148
# Do nothing if no site config exists
149149
if [[ -f ${enabled_site_file} ]]; then

0 commit comments

Comments
 (0)