Commit 8bfbc46a authored by kalvin's avatar kalvin

fixjobbugs

parent b711411b
...@@ -30,7 +30,7 @@ if [[ $db_is_running -eq 1 ]] ...@@ -30,7 +30,7 @@ if [[ $db_is_running -eq 1 ]]
curl --request POST \ curl --request POST \
--url http://192.168.29.116:9001/api/etcd/set_env_job_status \ --url http://192.168.29.116:9001/api/etcd/set_env_job_status \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data '{\n "namespace": "' + NAMESPACE + '",\n "job_name": "db_sync",\n "status": "running"\n}' --data '{\n "namespace": "' + $NAMESPACE + '",\n "job_name": "db_sync",\n "status": "running"\n}'
echo "start replace db domain" echo "start replace db domain"
DB_FILE=dump.sql DB_FILE=dump.sql
...@@ -106,7 +106,7 @@ do ...@@ -106,7 +106,7 @@ do
curl --request POST \ curl --request POST \
--url http://192.168.29.116:9001/api/etcd/set_env_job_status \ --url http://192.168.29.116:9001/api/etcd/set_env_job_status \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data '{\n "namespace": "' + NAMESPACE + '",\n "job_name": "db_sync",\n "status": "done"\n}' --data '{\n "namespace": "' + $NAMESPACE + '",\n "job_name": "db_sync",\n "status": "done"\n}'
else else
echo "db is not running" echo "db is not running"
sleep 1 sleep 1
......
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