From 457d4c229f14a39425a024f15735d5e18461e042 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 10 Nov 2023 22:42:23 +0900 Subject: [PATCH] Fix wrong path checked We should check whether the file being captured actually exists. Change-Id: I12ae91ac84fdd6ff1eee195b88e257819379ce79 (cherry picked from commit 71e569881e16a24e0bf596d162295cdac19703a9) (cherry picked from commit 8cbb3180e887b9f29910be4206b3dfde69eaf026) --- copy_logs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copy_logs.sh b/copy_logs.sh index 0162079c5..a7fc07679 100755 --- a/copy_logs.sh +++ b/copy_logs.sh @@ -225,7 +225,7 @@ if uses_debs ; then done elif is_fedora; then for f in ovn-northd ovn-controller ; do - if [ -f /etc/sysconfig/ovn-northd ]; then + if [ -f /etc/sysconfig/$f ]; then mkdir -p $LOG_DIR/etc/sysconfig sudo cp /etc/sysconfig/$f $LOG_DIR/etc/sysconfig/ fi