fix: ba customized
This commit is contained in:
@@ -5,8 +5,8 @@ SET FOREIGN_KEY_CHECKS=0;
|
||||
ALTER TABLE
|
||||
`omc_db`.`sys_config` MODIFY COLUMN `config_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值' AFTER `config_key`;
|
||||
|
||||
INSERT
|
||||
IGNORE INTO `omc_db`.`sys_config` (
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
@@ -31,8 +31,8 @@ VALUES (
|
||||
'config.sys.user.initPasswordRemark'
|
||||
);
|
||||
|
||||
INSERT
|
||||
IGNORE INTO `omc_db`.`sys_config` (
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
@@ -57,8 +57,8 @@ VALUES (
|
||||
'config.sys.account.captchaEnabledRemark'
|
||||
);
|
||||
|
||||
INSERT
|
||||
IGNORE INTO `omc_db`.`sys_config` (
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
@@ -83,8 +83,8 @@ VALUES (
|
||||
'config.sys.account.registerUserRemark'
|
||||
);
|
||||
|
||||
INSERT
|
||||
IGNORE INTO `omc_db`.`sys_config` (
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
@@ -109,8 +109,8 @@ VALUES (
|
||||
'config.sys.user.maxRetryCountRemark'
|
||||
);
|
||||
|
||||
INSERT
|
||||
IGNORE INTO `omc_db`.`sys_config` (
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
@@ -135,8 +135,8 @@ VALUES (
|
||||
'config.sys.user.lockTimeRemark'
|
||||
);
|
||||
|
||||
INSERT
|
||||
IGNORE INTO `omc_db`.`sys_config` (
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
|
||||
@@ -126,6 +126,7 @@ esac
|
||||
|
||||
case "$C_ARG" in
|
||||
ba)
|
||||
echo "Processing BA customized OMC ..."
|
||||
for SQL in ${CustomizedDirBA}/db/*.sql; do
|
||||
echo "Execute SQL script: ${SQL} ..."
|
||||
mysql -u${USER} -p${PASSWORD} -P ${PORT} --protocol tcp -D ${DBNAME} < ${SQL};
|
||||
@@ -133,6 +134,5 @@ case "$C_ARG" in
|
||||
cp -rf ${CustomizedDirBA}/logo/* $StaticLogoDir
|
||||
;;
|
||||
*)
|
||||
echo "C_ARG: $C_ARG"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user