fix cluster.conf

This commit is contained in:
robertyu2030 2022-08-24 02:33:59 +00:00
parent 59d04f037b
commit c6c23ddee0
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ export CUSTOM_SEARCH_LOCATIONS=file:${BASE_DIR}/conf/
export MEMBER_LIST="" export MEMBER_LIST=""
PLUGINS_DIR="/home/nacos/plugins/peer-finder" PLUGINS_DIR="/home/nacos/plugins/peer-finder"
function print_servers() { function print_servers() {
if [[ ! -d "${PLUGINS_DIR}" ]]; then if [[ ! -f "${CLUSTER_CONF}" ]]; then
echo "" >"$CLUSTER_CONF" echo "" >"$CLUSTER_CONF"
for server in ${NACOS_SERVERS}; do for server in ${NACOS_SERVERS}; do
echo "$server" >>"$CLUSTER_CONF" echo "$server" >>"$CLUSTER_CONF"