Always create o-a-c's $TEMPLATE_ROOT

Creating $TEMPLATE_ROOT is common to both os-apply-config package and
source installs, so move it into it's own install hook script under
install.d.

Change-Id: Iba79129cd111c144f67efabb93d4eb81641d1c2c
This commit is contained in:
James Slagle 2014-03-19 16:08:06 -04:00
parent bbc2ae852c
commit 0c88279fd4
2 changed files with 6 additions and 3 deletions

View File

@ -0,0 +1,6 @@
#!/bin/bash
set -eux
TEMPLATE_ROOT=$(os-apply-config --print-templates)
mkdir -p $TEMPLATE_ROOT

View File

@ -12,6 +12,3 @@ virtualenv --setuptools /opt/stack/venvs/os-apply-config
ln -s /opt/stack/venvs/os-apply-config/bin/os-apply-config /usr/local/bin/os-apply-config
ln -s /opt/stack/venvs/os-apply-config/bin/os-config-applier /usr/local/bin/os-config-applier
TEMPLATE_ROOT=$(os-apply-config --print-templates)
mkdir -p $TEMPLATE_ROOT