kolla-ansible/docker/swift/swift-rsyncd/config-external.sh
Paul Bourke 8fa96a1516 Add rsyncd image and related Ansible for Swift
Swift replicator services require rsync to function. This patch adds a
new container which is included automatically on each of the Swift
storage nodes.

Change-Id: If10fbe610ca4df21ef0f2c7a1025035d627cb4ba
Partial-Bug: #1477993
2015-09-07 12:16:35 +00:00

10 lines
216 B
Bash

#!/bin/bash
OWNER="swift"
if [[ -f "/opt/kolla/swift-rsyncd/rsyncd.conf" ]]; then
cp /opt/kolla/swift-rsyncd/rsyncd.conf /etc/rsyncd.conf
chown ${OWNER}: /etc/rsyncd.conf
chmod 0640 /etc/rsyncd.conf
fi