kolla-ansible/docker/logging/rsyslog/config-external.sh
Michal Jastrzebski (inc0) 943ffd76ed Glance logging to rsyslog
Configure glance to use rsyslog container as logging mechanism

Change-Id: I60f604d7a85bb4309b26be03cd6b8aac14840fe7
Implements: bp logging-container
2015-09-24 12:45:46 +02:00

17 lines
266 B
Bash
Executable File

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