diff --git a/shell/update.sh b/shell/update.sh index 27db7f8d..490b7f9f 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -494,8 +494,7 @@ main() { ;; resettfa) echo -e "## 开始执行... $begin_time\n" >>$log_path - auth_value=$(cat $file_auth_user | jq '.twoFactorActivated =false' -c) - auth_value=$(cat $auth_value | jq '.twoFactorActived =false' -c) + auth_value=$(cat $file_auth_user | jq '.twoFactorActivated =false' | jq '.twoFactorActived =false' -c) echo -e "禁用两步验证成功 \n $auth_value" >>$log_path echo "$auth_value" >$file_auth_user ;;