Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Place the updatedDBPasswords.groovy in the <datical_install_dir>/repl/scripts folder.

    1. Update the daticalBaseDir variable to point to the parent directory where all Datical DB projects are housed.

  2. Populate the changePasswords.csv and place in the parent directory where all Datical DB projects are housed (the same value that was set as daticalBaseDir.)

  3. From the same directory where you added the changePasswords.csv file, run the following command:

    Code Block
    hammer groovy updateDBPasswords.groovy
  4. The process performs the following :

    For

    for each row in the changePasswords.csv file

    , runs

    :

    1. Runs a git status and git pull in the project’s directory.

    2. Base64 encodes the password value.

    3. Checks the datical.project file in the project’s directory for the dbDef.

    4. Replaces the old password string with the new base64 encoded password.

    5. Runs a git add datical.project, git commit -m'<Message>', and a git push.

...