From 0d1dec7e0b9eadedf86ae0ff93dee48b634a21ea Mon Sep 17 00:00:00 2001
From: David Ames <david.ames@canonical.com>
Date: Fri, 19 Oct 2018 09:06:01 -0700
Subject: [PATCH] Pre-install apache2

Apache2 is a dependency of openstack-dashboard which gets installed in
the install() function. However, prior to that we register configs
which does a check of the apache2 package version leading to a chicken
and egg race.

Pre-install apache2 in the bash install script to avoid this race.

Closes-Bug: #1799500

Change-Id: I1f73a6b0284ca4e0a4018bff73fd4f8a778c4db5
---
 hooks/install | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hooks/install b/hooks/install
index 29ff689..32f374a 100755
--- a/hooks/install
+++ b/hooks/install
@@ -2,7 +2,7 @@
 # Wrapper to deal with newer Ubuntu versions that don't have py2 installed
 # by default.
 
-declare -a DEPS=('apt' 'netaddr' 'netifaces' 'pip' 'yaml' 'dnspython')
+declare -a DEPS=('apt' 'netaddr' 'netifaces' 'pip' 'yaml' 'dnspython', 'apache2')
 
 check_and_install() {
     pkg="${1}-${2}"
-- 
GitLab