Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in config change - removing UserStorePasswordMigrator from migration config yaml #1

Open
JayanaGunaweera01 opened this issue May 30, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JayanaGunaweera01
Copy link
Owner

Need to revisit below code block which is written to comment all all occurrences of UserStorePasswordMigrator
in migration config.yaml

  #if [ "$migratingVersion" = "6.0.0" ] || [ "$migratingVersion" = "6.1.0" ] || [ "$migratingVersion" = "6.2.0" ]; then
  # cd "$MIGRATION_RESOURCES_NEW_IS_UBUNTU"
  #  migration_config_file="$MIGRATION_RESOURCES_NEW_IS_UBUNTU/migration-config.yaml"

  #  if [ -f "$migration_config_file" ]; then
  # Find the line numbers of the occurrences of "UserStorePasswordMigrator"
  #    line_numbers=$(grep -n "UserStorePasswordMigrator" "$migration_config_file" | cut -d ":" -f 1)
  #
  #   if [ -n "$line_numbers" ]; then
  #     # Loop through each line number and comment the line, as well as the lines below it until a line without any letter
  #      IFS=$'\n' read -d '' -r -a line_number_array <<<"$line_numbers"
  #      for line_number in "${line_number_array[@]}"; do
  #        sed -i.bak "${line_number}s~^~#~" "$migration_config_file"
  #        for ((next_line = line_number + 1; ; next_line++)); do
  #          line=$(sed -n "${next_line}p" "$migration_config_file")
  #          if [[ ! $line =~ [[:alpha:]] ]]; then
  #            break
  #          fi
  #          sed -i.bak "${next_line}s~^~#~" "$migration_config_file"
  #        done
  #     done
  #     rm "$migration_config_file.bak"
  #
  #     echo "${GREEN}==> Commented all occurrences of UserStorePasswordMigrator and the lines below them until a line without any letter in the migration-config.yaml file.${RESET}"
  #    else
  #      echo "${RED}==> Failed to find any occurrences of UserStorePasswordMigrator in the migration-config.yaml file.${RESET}"
  #    fi
  #  else
  #    echo "${RED}==> migration-config.yaml file not found.${RESET}"
  #  fi
  #fi
  
@JayanaGunaweera01 JayanaGunaweera01 self-assigned this May 30, 2023
@JayanaGunaweera01 JayanaGunaweera01 added the bug Something isn't working label May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant