Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aronchanisme committed Apr 24, 2024
1 parent 989aed6 commit bbae18b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions bin/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,9 @@ function restore_logical()
BACKUP_MODUMP_DIRNAME=`dirname "${BACKUP_MOBR_PATH}"`

add_log "I" "Restore begins, please wait"
if MYSQL_PWD="${M_PW}" mysql -h"${MO_HOST}" -P"${MO_PORT}" -u"${MO_USER}" "${dbname_option}" < ${}
cmd="mysql -u$}"
#todo
#if MYSQL_PWD="${M_PW}" mysql -h"${MO_HOST}" -P"${MO_PORT}" -u"${MO_USER}" "${dbname_option}" < ${}
#cmd="mysql -u$}"


add_log "D" "cmd: cd ${BACKUP_MOBR_DIRNAME} && ${cmd}"
Expand Down
2 changes: 1 addition & 1 deletion bin/set_conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function set_kv()
case "${key}" in
# 2.1 enum list
#"TOOL_LOG_LEVEL"| "MO_DEPLOY_MODE"| "MO_SERVER_TYPE"| "MO_CONTAINER_AUTO_RESTART"| "CSV_CONVERT_TYPE"| "CSV_CONVERT_TN_TYPE"| "CSV_CONVERT_INSERT_ADD_QUOTE"| "BACKUP_TYPE"| "BACKUP_S3_IS_MINIO"| "BACKUP_LOGICAL_DATA_TYPE"| "BACKUP_LOGICAL_ONEBYONE")
#"TOOL_LOG_LEVEL"| "MO_DEPLOY_MODE" | "MO_CONTAINER_AUTO_RESTART"| "CSV_CONVERT_TYPE"| "CSV_CONVERT_TN_TYPE"| "CSV_CONVERT_INSERT_ADD_QUOTE"| "BACKUP_TYPE"| "BACKUP_S3_IS_MINIO"| "BACKUP_LOGICAL_DATA_TYPE"| "BACKUP_LOGICAL_ONEBYONE")
"TOOL_LOG_LEVEL"| "MO_DEPLOY_MODE" | "MO_CONTAINER_AUTO_RESTART"| "CSV_CONVERT_TYPE"| "CSV_CONVERT_TN_TYPE"| "CSV_CONVERT_INSERT_ADD_QUOTE"| "BACKUP_TYPE"| "BACKUP_S3_IS_MINIO"| "BACKUP_LOGICAL_DATA_TYPE"| "BACKUP_LOGICAL_ONEBYONE")

enum_list=`eval echo '$'"ENUM_$key"`
enum_list_2=`echo "${enum_list}" | sed "s/,/\|/g"`
Expand Down
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ function install()
#fi
fi

add_log "I" "Try to install mo_ctl from file ${pkg}"
if unzip -o mo_ctl.zip && mv ./mo_ctl_standalone-main/ ${mo_ctl_local_path} && chmod +x ${mo_ctl_local_path}/mo_ctl.sh; then
add_log "I" "Try to install mo_ctl from file ${pkg}"
pkg_prefix=`echo "mo_ctl_standalone_dev.zip" | awk -F '.' '{print $1}'`
if unzip -o ${pkg} && mv ./${pkg_prefix} ${mo_ctl_local_path} && chmod +x ${mo_ctl_local_path}/mo_ctl.sh; then
add_log "I" "Successfully extracted mo_ctl file to ${mo_ctl_local_path}"
else
add_log "E" "Failed to extract file, please check if 'unzip' is installed or file is complete"
Expand Down

0 comments on commit bbae18b

Please sign in to comment.