Commit fa1e275e authored by daidekun's avatar daidekun

Merge branch 'master' of git.quantgroup.cn:QA/qg-dockerfiles

parents 0564ba81 968e4421
...@@ -53,9 +53,9 @@ echo "mysqldump --host=${HOST} --port=${PORT} --user=${USER} --password=${PASSWO ...@@ -53,9 +53,9 @@ echo "mysqldump --host=${HOST} --port=${PORT} --user=${USER} --password=${PASSWO
mysqldump --host=${HOST} --port=${PORT} --user=${USER} --password=${PASSWORD} --all-databases ${IGNORED_TABLES_STRING} >> ${DB_FILE} mysqldump --host=${HOST} --port=${PORT} --user=${USER} --password=${PASSWORD} --all-databases ${IGNORED_TABLES_STRING} >> ${DB_FILE}
echo "sed file" echo "sed file"
if [[ $HTTPS = true ]];then if [[ $HTTPS = true ]];then
sed -i "s#\.xyqb\.com#-${NAMESPACE}.q-gp.com#g; s#\.quantgroup\.cn#-${NAMESPACE}.q-gp.com#g" ${DB_FILE} sed -i "s#\.xyqb\.com#-${NAMESPACE}\.q-gp\.com#g; s#\.quantgroup\.cn#-${NAMESPACE}\.q-gp\.com#g; s#-base\.q-gp\.com#-${NAMESPACE}\.q-gp\.com#g" ${DB_FILE}
else else
sed -i "s#\.xyqb\.com#-${NAMESPACE}.q-gp.com#g; s#\.quantgroup\.cn#-${NAMESPACE}.q-gp.com#g; s#\https#http#g" ${DB_FILE} sed -i "s#\.xyqb\.com#-${NAMESPACE}\.q-gp\.com#g; s#\.quantgroup\.cn#-${NAMESPACE}\.q-gp\.com#g; s#-base\.q-gp\.com#-${NAMESPACE}\.q-gp\.com#g; s#\https#http#g" ${DB_FILE}
fi fi
echo "mysql dump file" echo "mysql dump file"
......
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