Merge "[Sahara] Copy policy.json if it exists"

This commit is contained in:
Jenkins 2014-10-31 13:28:54 +00:00 committed by Gerrit Code Review
commit 219a58e57b

View File

@ -98,6 +98,10 @@ function configure_sahara {
fi fi
sudo chown $STACK_USER $SAHARA_CONF_DIR sudo chown $STACK_USER $SAHARA_CONF_DIR
if [[ -f $SAHARA_DIR/etc/sahara/policy.json ]]; then
cp -p $SAHARA_DIR/etc/sahara/policy.json $SAHARA_CONF_DIR
fi
# Copy over sahara configuration file and configure common parameters. # Copy over sahara configuration file and configure common parameters.
cp $SAHARA_DIR/etc/sahara/sahara.conf.sample $SAHARA_CONF_FILE cp $SAHARA_DIR/etc/sahara/sahara.conf.sample $SAHARA_CONF_FILE