kolla-ansible/docker/common/gnocchi/gnocchi-api/config-external.sh
Sam Yaple 65ed3c7f53 Remove config-internal for gnocchi
Change-Id: Icf74913d03a780cd7c59fbc26a55344f2a12fdfa
Partially-implements: blueprint remove-config-internal
2015-08-07 18:48:27 +00:00

11 lines
222 B
Bash

#!/bin/bash
SOURCE="/opt/kolla/gnocchi-api/gnocchi-api.conf"
TARGET="/etc/gnocchi/gnocchi-api.conf"
OWNER="gnocchi"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi