Skip to content

Commit ca2682f

Browse files
authored
Merge pull request #311 from APIParkLab/feature/liujian-1.8
update docker run.sh
2 parents b2baa71 + 2bd1d4a commit ca2682f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

scripts/resource/docker_run.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,22 @@ if [[ ${Init} == "true" ]];then
4747
r=$(is_init)
4848
if [[ $r == "true" ]];then
4949
echo "Already initialized, skipping initialization."
50-
exit 0
51-
fi
52-
wait_for_influxdb
50+
else
51+
wait_for_influxdb
5352

54-
wait_for_apinto
55-
set_cluster
53+
wait_for_apinto
54+
set_cluster
5655

57-
wait_for_influxdb
58-
set_influxdb
56+
wait_for_influxdb
57+
set_influxdb
5958

60-
set_loki
61-
set_nsq
62-
set_openapi_config
63-
# 重启apipark
64-
kill -9 $(pgrep apipark)
65-
nohup ./apipark >> run.log 2>&1 &
59+
set_loki
60+
set_nsq
61+
set_openapi_config
62+
# 重启apipark
63+
kill -9 $(pgrep apipark)
64+
nohup ./apipark >> run.log 2>&1 &
65+
fi
6666
fi
6767

6868
tail -F run.log

0 commit comments

Comments
 (0)