943ffd76ed
Configure glance to use rsyslog container as logging mechanism Change-Id: I60f604d7a85bb4309b26be03cd6b8aac14840fe7 Implements: bp logging-container
17 lines
266 B
Bash
Executable File
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
|