d1f2ec8c8a
Change-Id: Ie347964d42e7060c69047b1aeece1cf0ad311ae6 Partially-Implements: blueprint ansible-service
14 lines
366 B
Bash
Executable File
14 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
SOURCES="/opt/kolla/neutron-agents/neutron.conf /opt/kolla/neutron-agents/dhcp_agent.ini /opt/kolla/neutron-agents/dnsmasq.conf"
|
|
TARGET="/etc/neutron/"
|
|
OWNER="neutron"
|
|
|
|
for f in $SOURCES; do
|
|
if [[ -f "$f" ]]; then
|
|
fname=$(basename $f)
|
|
cp $f $TARGET
|
|
chown ${OWNER}: $TARGET/$fname
|
|
chmod 0644 $TARGET/$fname
|
|
fi
|
|
done
|