This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| currentDir=$PWD | |
| find -type d -name 'locale' | while read folder; do | |
| cd $currentDir | |
| echo $folder | |
| cd $folder | |
| find -name '*.xml' | while read file; do | |
| tmpfile=$(echo $file | sed -E 's/.xml$/.tmp/g') | |
| propfile=$(echo $file | sed -E 's/.xml$/.properties/g') | |
| yq --xml-skip-directives --xml-skip-proc-inst -p=xml -o=properties --properties-separator="=" --xml-strict-mode $file | sed 's/[^.]*.//' >$tmpfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -eu | |
| function getContainerEnv() { | |
| docker inspect -f '{{range $index, $value := .Config.Env}}{{println $value}}{{end}}' $1 | grep $2 | cut -d "=" -f2 | |
| } | |
| dbUser=$(getContainerEnv mysql MYSQL_USER) | |
| dbPassword=$(getContainerEnv mysql MYSQL_PASSWORD) | |
| dbRootPassword=$(getContainerEnv mysql MYSQL_ROOT_PASSWORD) | |
| dbName=$(getContainerEnv mysql MYSQL_DATABASE) | |
| if [ "${1:-}" = "--root" ] || [ "${1:-}" = "-r" ]; then |