mkdir -p
This commit is contained in:
parent
03899e7e0f
commit
6695853eff
@ -43,7 +43,7 @@ function compare(){
|
||||
echo "current path: $(pwd)"
|
||||
if [ ! -f "$fileName" ];then
|
||||
echo "checkService 文件 $fileName 不存在1!"
|
||||
return -1
|
||||
return 1
|
||||
fi
|
||||
|
||||
oriSum=$(md5sum $fileName)
|
||||
|
@ -28,7 +28,7 @@ function uploadLog()
|
||||
count=$3
|
||||
echo "current user is ${USER}"
|
||||
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
|
||||
echo "ok: log ${identify} uploaded to oss!"
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user