File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,18 +65,18 @@ function deploy_server() {
65
65
66
66
if [ " ${FLAGS_replace_conf} " == " 0" ]; then
67
67
# conf file
68
- dist_conf=" ${dstpath} /conf/${role } .toml"
69
- cp $srcpath /conf/dingo- ${role } .template.toml $dist_conf
68
+ dist_conf=" ${dstpath} /conf/${server_name } .toml"
69
+ cp $srcpath /conf/${server_name } .template.toml $dist_conf
70
70
71
71
sed -i ' s,\$INSTANCE_ID\$,' " $instance_id " ' ,g' $dist_conf
72
72
sed -i ' s,\$SERVER_HOST\$,' " $SERVER_HOST " ' ,g' $dist_conf
73
73
sed -i ' s,\$SERVER_PORT\$,' " $server_port " ' ,g' $dist_conf
74
74
sed -i ' s,\$BASE_PATH\$,' " $dstpath " ' ,g' $dist_conf
75
75
76
76
# gflags file
77
- if [ -f $srcpath /conf/${role } .gflags ]
77
+ if [ -f $srcpath /conf/${server_name } .gflags ]
78
78
then
79
- cp $srcpath /conf/${role } .gflags $dstpath /conf/gflags
79
+ cp $srcpath /conf/${server_name } .gflags $dstpath /conf/
80
80
fi
81
81
82
82
# coor_list file
You can’t perform that action at this time.
0 commit comments