diff --git a/backUpDB.sh b/backUpDB.sh index 89991d5..0a0b53e 100755 --- a/backUpDB.sh +++ b/backUpDB.sh @@ -8,7 +8,7 @@ dbName=$5 backUpPath=$6 ossPath=$7 -protal=obs +protal=oss PATH=PATH:/usr/bin:/usr/sbin:/usr/local/bin diff --git a/checkService.sh b/checkService.sh index 91d3d03..b947706 100755 --- a/checkService.sh +++ b/checkService.sh @@ -11,7 +11,7 @@ workPath=$4 ossLogPath=$5 preName="${fileName%.*}" -protal=obs +protal=oss PATH=PATH:/usr/bin:/usr/sbin:/usr/local/bin diff --git a/dbUpgrade.sh b/dbUpgrade.sh index 613e86f..312e77c 100755 --- a/dbUpgrade.sh +++ b/dbUpgrade.sh @@ -13,7 +13,7 @@ ossPath=$7 projectName="sql" projectPath=${tempPath}/${projectName} -protal=obs +protal=oss function init(){ cd $tempPath diff --git a/frontEndUpgrade.sh b/frontEndUpgrade.sh index 00190a3..1a20332 100755 --- a/frontEndUpgrade.sh +++ b/frontEndUpgrade.sh @@ -8,7 +8,7 @@ workPath=$3 ossLogPath=$4 user=$USER -protal=obs +protal=oss if [ -n $5 ]; then user=$5 diff --git a/ossDetect.sh b/ossDetect.sh index 08a00b8..4310f8f 100755 --- a/ossDetect.sh +++ b/ossDetect.sh @@ -1,6 +1,6 @@ #!/bin/bash -protal=obs +protal=oss cd /tmp/autoDeploy ossutil stat ${protol}://ztupload/html.zip > html_oss.info ossInfo=$(cat html_oss.info) diff --git a/ossUpgrade.sh b/ossUpgrade.sh index aacdc91..1b47c30 100755 --- a/ossUpgrade.sh +++ b/ossUpgrade.sh @@ -7,6 +7,8 @@ ossPath=$1 #末尾别忘了加/ fileName=$2 preName="${fileName%.*}" +protol=oss + basePath=/tmp/autoDeploy if [ -n $3 ]; then basePath=$3 diff --git a/uplaodLog.sh b/uplaodLog.sh index 2123bc4..39d6e7b 100755 --- a/uplaodLog.sh +++ b/uplaodLog.sh @@ -4,7 +4,7 @@ # ./ossUpgrade.sh "stage/ztsjxxxt/frontEnd/" ztsjxxxt ossPath=$1 #末尾别忘了加/ serviceName=$2 -protal=obs +protal=oss sudo journalctl -n 2000 -xeu $serviceName > ${serviceName}.log ossutil cp ${serviceName}.log > ${protol}://${ossPath} diff --git a/upload.sh b/upload.sh index 8a6dff6..42eb426 100755 --- a/upload.sh +++ b/upload.sh @@ -1,5 +1,5 @@ dataCenterPath=~/data_center -protal=obs +protal=oss function fetch() { for file in ${dataCenterPath}/jars/*.jar