添加重置登录错误次数命令

This commit is contained in:
hanhh 2021-08-24 18:20:36 +08:00
parent fb0c1c6993
commit f78d72db4c

View File

@ -484,6 +484,12 @@ main() {
[[ -f $task_error_log_path ]] && cat $task_error_log_path >>$log_path
. $dir_shell/check.sh >>$log_path
;;
resetlet)
echo -e "## 开始执行... $begin_time\n" >>$log_path
auth_value=$(cat $file_auth_user | jq '.retries =0' -c)
echo -e "重置成功 \n $auth_value" >>$log_path
echo "$auth_value" >$file_auth_user
;;
*)
echo -e "命令输入错误...\n"
usage