kolla-ansible/docker_templates/ironic/ironic-discoverd/config-external.sh
Jeff Peeler e0f0e2105f Add templated dockerfiles for ironic
Partially-implements: blueprint ironic-container

Change-Id: I7869c49c851a95c12fffaf426abd6625f3f1a212
2015-08-21 16:45:05 -04:00

12 lines
232 B
Bash

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