diff --git a/frontEndUpgrade.sh b/frontEndUpgrade.sh index 1a20332..940b501 100755 --- a/frontEndUpgrade.sh +++ b/frontEndUpgrade.sh @@ -9,11 +9,16 @@ ossLogPath=$4 user=$USER protal=oss +basePath=/var/tmp/autoDeploy if [ -n $5 ]; then user=$5 fi +if [ ! -d $basePath ]; then + mkdir $basePath -p +fi + if [ ! -d $workPath ]; then echo workPath $workPath not exist! exit 1 diff --git a/ossUpgrade.sh b/ossUpgrade.sh index 1b47c30..1b93593 100755 --- a/ossUpgrade.sh +++ b/ossUpgrade.sh @@ -9,15 +9,19 @@ preName="${fileName%.*}" protol=oss -basePath=/tmp/autoDeploy +basePath=/var/temp/autoDeploy + if [ -n $3 ]; then - basePath=$3 + basePath=$RR fi if [ ! -d $basePath ]; then mkdir $basePath -p fi function compare(){ + if [ ! -d $basePath ]; then + mkdir $basePath + fi cd $basePath if [ ! -f ${fileName}_oss.info ]; then touch ${fileName}_oss.info