diff --git a/checkService.sh b/checkService.sh index dff0ed5..7b27e10 100755 --- a/checkService.sh +++ b/checkService.sh @@ -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) diff --git a/frontEndUpgrade.sh b/frontEndUpgrade.sh index ec16dfd..5d38b20 100755 --- a/frontEndUpgrade.sh +++ b/frontEndUpgrade.sh @@ -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