Commit 4fb04fe9 authored by tywldx's avatar tywldx
parents fc7584b0 fc0349a3
......@@ -49,13 +49,15 @@ else
spawn ssh root@${IP_host_first}${target_ip}
expect *ssword* { send !QAZ2wsx\r }
expect \"]#\"
send \"umount -l /home/qa-deploy-utils/qa_shell_script\r\"
expect \"]#\"
send \"mkdir -p /home/qa-deploy-utils/qa_shell_script\r\"
set timeout -1
expect \"]#\"
send \"mount -t nfs 192.168.4.3:/home/qa-deploy-utils/qa_shell_script /home/qa-deploy-utils/qa_shell_script\r\"
set timeout -1
expect \"]#\"
send \"umount $config_files\r\"
send \"umount -l $config_files\r\"
set timeout -1
expect \"]#\"
send \"rm -rf $config_files\r\"
......
......@@ -13,7 +13,7 @@ if [ -n "$project_folder" ];then
type=`node $config_server/get_project_config.js -name $project_name -attr type`
if [ "$type" = "node" ];then
command2=`node $config_server/get_project_config.js -name $project_name -attr command2`
command2
$command2
fi
sh $config_server/show_info.sh $project_name pull代码 $desc $3
cd ./$project_name
......
......@@ -16,7 +16,7 @@ function getCode()
type=`node $config_server/get_project_config.js -name $project_name -attr type`
if [ "$type" = "node" ];then
command2=`node $config_server/get_project_config.js -name $project_name -attr command2`
command2
$command2
fi
cd $project_path
project_folder=`find ./ -maxdepth 1 -name "$project"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment