From 03380e72f256b85bdb6ed03f5f9dc6e17d335c8b Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 9 Feb 2025 08:55:16 +0900 Subject: [PATCH] CentOS: Fix missing config files Some of the config files are placed directly in /etc . Make sure these files are captured. Change-Id: I70996df1cb693bcd8b3aa7b213633b361eb8f32a --- copy_logs.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/copy_logs.sh b/copy_logs.sh index 3aa6c3a97..553d9cd37 100755 --- a/copy_logs.sh +++ b/copy_logs.sh @@ -170,9 +170,16 @@ if [ -d /etc/named ]; then if [ -f /etc/rndc.conf ]; then sudo cp -r /etc/rndc.conf $LOG_DIR/rndc.conf fi -elif [ -d /etc/bind ]; then +fi +if [ -d /etc/bind ]; then sudo cp -r /etc/bind $LOG_DIR/etc fi +if [ -f /etc/rndc.key ]; then + sudo cp /etc/rndc.key $LOG_DIR/etc +fi +if [ -f /etc/named.conf ]; then + sudo cp /etc/named.conf $LOG_DIR/etc +fi # tempest logs if [ -f /tmp/openstack/tempest/tempest.log ] ; then