This commit is contained in:
zhangkun9038@dingtalk.com 2022-10-31 08:02:42 +00:00
parent 03899e7e0f
commit 6695853eff
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ function compare(){
echo "current path: $(pwd)" echo "current path: $(pwd)"
if [ ! -f "$fileName" ];then if [ ! -f "$fileName" ];then
echo "checkService 文件 $fileName 不存在1!" echo "checkService 文件 $fileName 不存在1!"
return -1 return 1
fi fi
oriSum=$(md5sum $fileName) oriSum=$(md5sum $fileName)

View File

@ -28,7 +28,7 @@ function uploadLog()
count=$3 count=$3
echo "current user is ${USER}" echo "current user is ${USER}"
journalctl -n $count -xe -${ctype} $identify > ${workPath}/${identify}.log journalctl -n $count -xe -${ctype} $identify > ${workPath}/${identify}.log
${workPath}/ossutil cp -f ${workPath}/${identify}.log oss://${ossLogPath}/logs/${identify}.log ~/ossutil cp -f ${workPath}/${identify}.log oss://${ossLogPath}/logs/${identify}.log
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "ok: log ${identify} uploaded to oss!" echo "ok: log ${identify} uploaded to oss!"
return 0 return 0