Skip to content

Commit dc7e8b3

Browse files
author
d3llf
committed
Cosmetic change for APACHE Configuration under Gentoo.
If GLANCE_BIN_DIR is unset earlier, under if is interpreted as local variable.
1 parent 7d2952b commit dc7e8b3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/glance

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ set +o xtrace
2828

2929
# Set up default directories
3030
GLANCE_DIR=$DEST/glance
31+
GLANCE_BIN_DIR=$GLANCE_DIR/bin
3132
GLANCECLIENT_DIR=$DEST/python-glanceclient
3233
GLANCE_CACHE_DIR=${GLANCE_CACHE_DIR:=$DATA_DIR/glance/cache}
3334
GLANCE_IMAGE_DIR=${GLANCE_IMAGE_DIR:=$DATA_DIR/glance/images}

stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ if is_service_enabled horizon; then
11811181
APACHE_CONF=vhosts.d/horizon.conf
11821182
sudo touch /etc/$APACHE_NAME/$APACHE_CONF
11831183
# Enable WSGI for Apache if it's not enabled.
1184-
grep -E "^APACHE2_OPTS=\".*-D WSGI.*$" /etc/conf.d/apache2 ||
1184+
grep -E "^APACHE2_OPTS=\".*-D WSGI.*$" /etc/conf.d/apache2 >/dev/null ||
11851185
sudo sed -i 's/APACHE2_OPTS="/APACHE2_OPTS="-D WSGI /g' /etc/conf.d/apache2
11861186
fi
11871187

0 commit comments

Comments
 (0)