Skip to content

Commit 888a258

Browse files
authored
Update stop_node.sh
1 parent f4c1303 commit 888a258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stop_node.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ if [[ -z ${new_node_name} ]]; then
66
echo Node Name is needed ~~~
77
exit
88
fi
9-
node_port=`cat /U01/soft1/soft/mgr_install/init.lst|grep -w ${new_node_name}|awk '{print $1}'`
10-
node_name=`cat /U01/soft1/soft/mgr_install/init.lst|grep -w ${new_node_name}|awk '{print $2}'`
9+
node_port=`cat init.lst|grep -w ${new_node_name}|awk '{print $1}'`
10+
node_name=`cat init.lst|grep -w ${new_node_name}|awk '{print $2}'`
1111
echo ${node_port}
1212
if [[ ${node_name} = ${new_node_name} ]];then
1313
${base_dir}/bin/mysqladmin -P${node_port} -S ${base_data_dir}/${node_name}/${node_name}.sock shutdown

0 commit comments

Comments
 (0)