Skip to content

Commit 6356e51

Browse files
committed
fix env update bug
1 parent df22fdf commit 6356e51

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

deploy/framework/sql/tars_servers.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ replace into `t_adapter_conf` (`application`, `server_name`, `node_name`, `adapt
4141
replace into `t_server_conf` (`application`, `server_name`, `node_group`, `node_name`, `registry_timestamp`, `base_path`, `exe_path`, `template_name`, `bak_flag`, `setting_state`, `present_state`, `process_id`, `patch_version`, `patch_time`, `patch_user`, `tars_version`, `posttime`, `lastuser`, `server_type`) VALUES ('tars','tarsstat','','localip.tars.com',now(),'','/usr/local/app/tars/tarsstat/bin/tarsstat','tars.tarsstat',0,'active','active',0,'2.1.0',now(),'','1.1.0',now(),'admin','tars_cpp');
4242

4343
#v2.1.0, tarsquerystat & tarsqueryproperty change to tars server
44-
delete from `t_adapter_conf` where application = 'tars' and server_name = 'tarsqueryproperty' and adapter_name = 'tars.tarsqueryproperty.NoTarsObjAdapter';
45-
delete from `t_adapter_conf` where application = 'tars' and server_name = 'tarsquerystat' and adapter_name = 'tars.tarsquerystat.NoTarsObjAdapter';
44+
delete from t_adapter_conf where application = 'tars' and server_name = 'tarsqueryproperty' and adapter_name = 'tars.tarsqueryproperty.NoTarsObjAdapter';
45+
delete from t_adapter_conf where application = 'tars' and server_name = 'tarsquerystat' and adapter_name = 'tars.tarsquerystat.NoTarsObjAdapter';

deploy/tars-install.sh

+2
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,8 @@ do
451451
exit 1
452452
fi
453453

454+
LOG_DEBUG "remove old version config: rm -rf ${TARS_PATH}/tarsnode/data/tars.${var}/conf/tars.${var}.config.conf"
455+
454456
LOG_DEBUG ${TARS_PATH}/${var}/util/start.sh
455457
sh ${TARS_PATH}/${var}/util/start.sh > /dev/null
456458
done

0 commit comments

Comments
 (0)