mkdir -p
This commit is contained in:
parent
03899e7e0f
commit
6695853eff
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user