fix(docker): fix access error when root password is set (#1776)
This commit is contained in:
		@ -246,7 +246,11 @@ fi
 | 
			
		||||
if [ $? -eq 0 ]; then
 | 
			
		||||
  echo "boot success!"
 | 
			
		||||
  # close the enable_rich_error_msg
 | 
			
		||||
  obclient -h127.1 -uroot@sys -A -P${OB_MYSQL_PORT} -e "alter system set enable_rich_error_msg = false;"
 | 
			
		||||
  PASSWORD_ARG=""
 | 
			
		||||
  if [ "${OB_ROOT_PASSWORD}" != "" ]; then
 | 
			
		||||
    PASSWORD_ARG="-p${OB_ROOT_PASSWORD}"
 | 
			
		||||
  fi
 | 
			
		||||
  obclient -h127.1 -uroot@sys -A -P${OB_MYSQL_PORT} ${PASSWORD_ARG} -e "alter system set enable_rich_error_msg = false;"
 | 
			
		||||
else
 | 
			
		||||
  echo "boot failed!"
 | 
			
		||||
  if exit_while_error
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user