37 lines
873 B
Diff
Executable File
37 lines
873 B
Diff
Executable File
From a351cc544f6e949a26b53e294aa2e496622feba6 Mon Sep 17 00:00:00 2001
|
|
From: roly <Rolyli.Li@luxshare-ict.com>
|
|
Date: Fri, 17 Jan 2025 10:11:24 +0800
|
|
Subject: [PATCH] Add persustent log
|
|
|
|
---
|
|
tools/dreport.d/plugins.d/persistent_log | 17 +++++++++++++++++
|
|
1 file changed, 17 insertions(+)
|
|
create mode 100755 tools/dreport.d/plugins.d/persistent_log
|
|
|
|
diff --git a/tools/dreport.d/plugins.d/persistent_log b/tools/dreport.d/plugins.d/persistent_log
|
|
new file mode 100755
|
|
index 0000000..fc4ef54
|
|
--- /dev/null
|
|
+++ b/tools/dreport.d/plugins.d/persistent_log
|
|
@@ -0,0 +1,17 @@
|
|
+#!/bin/bash
|
|
+#
|
|
+# config: 24 25
|
|
+# @brief: Collect persistent log.
|
|
+#
|
|
+
|
|
+# shellcheck source=/dev/null
|
|
+. "$DREPORT_INCLUDE"/functions
|
|
+
|
|
+desc="persistent log"
|
|
+path="/var/persistent/log/"
|
|
+files=$(ls $path)
|
|
+
|
|
+for file_name in $files
|
|
+do
|
|
+ add_copy_file "$path$file_name" "$desc"
|
|
+done
|
|
--
|
|
2.25.1
|
|
|