Query os-refresh-config for the base dir

This commit is contained in:
James Slagle 2014-10-20 09:28:08 -04:00
parent 2685778f62
commit 82a7fba811

View File

@ -1,5 +1,7 @@
#!/bin/bash
cat > /opt/stack/os-config-refresh/environment.d/10-tuskar-role-directory <<EOF
basedir=$(os-refresh-config --print-base)
mkdir $basedir/environment.d
cat > $basedir/environment.d/10-tuskar-role-directory <<EOF
export TUSKAR_ROLE_DIRECTORY=$TUSKAR_ROLE_DIRECTORY
EOF