cbd42ca6e9
Updated build.py to reflect this change. Deprecate --template option and make it a noop. Change-Id: I7cd98d1ee684a4c64984a49597159868152683b2 Partially-Implements: blueprint remove-docker-dir
20 lines
522 B
Bash
20 lines
522 B
Bash
#!/bin/bash
|
|
SOURCE_CONFIG="/opt/kolla/rabbitmq/rabbitmq.config"
|
|
TARGET_CONFIG="/etc/rabbitmq/rabbitmq.config"
|
|
SOURCE_ENV="/opt/kolla/rabbitmq/rabbitmq-env.conf"
|
|
TARGET_ENV="/etc/rabbitmq/rabbitmq-env.conf"
|
|
OWNER="rabbitmq"
|
|
|
|
# Cluster configuration
|
|
if [[ -f "$SOURCE_CONFIG" ]]; then
|
|
cp -af $SOURCE_CONFIG $TARGET_CONFIG
|
|
chown ${OWNER}: $TARGET_CONFIG
|
|
chmod 0600 $TARGET_CONFIG
|
|
fi
|
|
|
|
if [[ -f "$SOURCE_ENV" ]]; then
|
|
cp -af $SOURCE_ENV $TARGET_ENV
|
|
chown ${OWNER}: $TARGET_ENV
|
|
chmod 0600 $TARGET_ENV
|
|
fi
|