main
parent
37af9e89d3
commit
aae61239bd
|
|
@ -3,8 +3,8 @@
|
|||
source ../main.sh
|
||||
|
||||
show_file(){
|
||||
filer=$1
|
||||
ls /data/update/$filer/ | tr ' ' '\n'
|
||||
filer=$1
|
||||
find /data/update/$filer -type f -printf "%f\t%Tc\n"
|
||||
}
|
||||
|
||||
# 判断一个字符串是否是合法的IP地址
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
servers=("server1" "server2" "server3")
|
||||
|
||||
# 本地计算机的SSH公钥路径
|
||||
local_public_key="~/.ssh/id_rsa.pub"
|
||||
local_public_key="$HOME/.ssh/id_rsa.pub"
|
||||
|
||||
# 远程主机的用户名和密码
|
||||
remote_user="root"
|
||||
|
|
|
|||
|
|
@ -15,11 +15,11 @@ ip=$1
|
|||
BASE_DIR="/data/update/project/miduo_pay"
|
||||
|
||||
if [ ! -d ${BASE_DIR} ]; then
|
||||
echo "your input ${branch} Branch does not exist!"
|
||||
echo "your input ${BASE_DIR} Branch does not exist!"
|
||||
exit 7
|
||||
fi
|
||||
|
||||
cd ${BASE_DIR}/
|
||||
cd ${BASE_DIR}/ || exit
|
||||
git pull
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
# Description:
|
||||
#########################################################################
|
||||
ip=$1
|
||||
cd /data/update/project/miduo_login/
|
||||
cd /data/update/project/miduo_login/ || exit
|
||||
git pull
|
||||
./gradlew clean
|
||||
./gradlew build
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ BASE_DIR="/data/update/project/sensitiveWordFilter"
|
|||
ip=$1
|
||||
|
||||
#java
|
||||
cd ${BASE_DIR}/
|
||||
cd ${BASE_DIR}/ || exit
|
||||
#git checkout $branch
|
||||
git pull
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue