add check and removing logs
This commit is contained in:
parent
c15224cb1c
commit
4e573feb60
@ -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-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-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-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;
|
_logs3days;
|
||||||
_remove_logs;
|
_remove_logs;
|
||||||
@ -398,7 +399,7 @@ elif [[ "$1" == "-node" || "$1" == "4" ]]; then
|
|||||||
about_platform;
|
about_platform;
|
||||||
_node $2 $3;
|
_node $2 $3;
|
||||||
fi
|
fi
|
||||||
elif [[ "$1" == "-lic" || "$1" == "5" ]]; then
|
elif [[ "$1" == "-clear" || "$1" == "5" ]]; then
|
||||||
_remove_logs;
|
_remove_logs;
|
||||||
#elif [[ "$1" == "-vm-host" || "$1" == "5" ]]; then
|
#elif [[ "$1" == "-vm-host" || "$1" == "5" ]]; then
|
||||||
# _vm_host;
|
# _vm_host;
|
||||||
|
Reference in New Issue
Block a user