add check and removing logs

This commit is contained in:
Сергей Гудаев 2023-06-17 01:39:33 +08:00
parent c15224cb1c
commit 4e573feb60

View File

@ -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 <IP-address> <SSH-port>\t node's logs\n";
echo -e "\t-node or 4 <IP-address> <SSH-port>\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;