You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[[ -n"${expr}" ]] && sed -i "${expr}""$@"&>/dev/null ||true
671
+
}
672
+
665
673
archive_doris_logs() {
666
674
if [[ !-d"${DORIS_HOME:-}" ]];thenreturn 1;fi
667
675
local archive_name="$1"
@@ -674,19 +682,19 @@ archive_doris_logs() {
674
682
(
675
683
cd"${DORIS_HOME}"||return 1
676
684
cp --parents -rf "fe/conf""${archive_dir}"/
677
-
if sed -i "s/${hwYunAk:-}//g;s/${hwYunSk:-}//g;s/${s3SourceAk:-}//g;s/${s3SourceSk:-}//g;s/${txYunAk:-}//g;s/${txYunSk:-}//g"fe/log/*&>/dev/null;then:;fi
685
+
_redact_creds fe/log/*
678
686
cp --parents -rf "fe/log""${archive_dir}"/
679
687
cp --parents -rf "be/conf""${archive_dir}"/
680
-
if sed -i "s/${hwYunAk:-}//g;s/${hwYunSk:-}//g;s/${s3SourceAk:-}//g;s/${s3SourceSk:-}//g;s/${txYunAk:-}//g;s/${txYunSk:-}//g"be/log/*&>/dev/null;then:;fi
688
+
_redact_creds be/log/*
681
689
cp --parents -rf "be/log""${archive_dir}"/
682
690
if [[ -d"${DORIS_HOME}"/regression-test/log ]];then
683
691
# try to hide ak and sk
684
-
if sed -i "s/${hwYunAk:-}//g;s/${hwYunSk:-}//g;s/${s3SourceAk:-}//g;s/${s3SourceSk:-}//g;s/${txYunAk:-}//g;s/${txYunSk:-}//g"regression-test/log/*&>/dev/null;then:;fi
if [[ -d"${DORIS_HOME}"/../regression-test/conf ]];then
688
696
# try to hide ak and sk
689
-
if sed -i "s/${hwYunAk:-}//g;s/${hwYunSk:-}//g;s/${s3SourceAk:-}//g;s/${s3SourceSk:-}//g;s/${txYunAk:-}//g;s/${txYunSk:-}//g"../regression-test/conf/*&>/dev/null;then:;fi
0 commit comments