From 4e573feb6040671d8e5eed1d3a58dd974fe6b3c9 Mon Sep 17 00:00:00 2001 From: Dexter Date: Sat, 17 Jun 2023 01:39:33 +0800 Subject: [PATCH] add check and removing logs --- get-all-logs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/get-all-logs.sh b/get-all-logs.sh index 12bb3dc..e4e044a 100644 --- a/get-all-logs.sh +++ b/get-all-logs.sh @@ -218,7 +218,8 @@ echo -e "\n\targuments:\n"; echo -e "\t-logs or 1\t\t\t\t all logs from platform"; echo -e "\t-short-logs or 2\t\t\t logs for only last 7 days"; echo -e "\t-lic or 3\t\t\t\t logs about license"; -echo -e "\t-node or 4 \t node's logs\n"; +echo -e "\t-node or 4 \t node's logs"; +echo -e "\t-clear or 5\t\t\t\t deleting logs older 3 days"; _logs3days; _remove_logs; @@ -398,7 +399,7 @@ elif [[ "$1" == "-node" || "$1" == "4" ]]; then about_platform; _node $2 $3; fi -elif [[ "$1" == "-lic" || "$1" == "5" ]]; then +elif [[ "$1" == "-clear" || "$1" == "5" ]]; then _remove_logs; #elif [[ "$1" == "-vm-host" || "$1" == "5" ]]; then # _vm_host;