diff options
Diffstat (limited to 'kubernetes/config/docker/init/src/config/dcae/ves/pw.sh.sh')
-rwxr-xr-x | kubernetes/config/docker/init/src/config/dcae/ves/pw.sh.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kubernetes/config/docker/init/src/config/dcae/ves/pw.sh.sh b/kubernetes/config/docker/init/src/config/dcae/ves/pw.sh.sh new file mode 100755 index 0000000000..8e179de065 --- /dev/null +++ b/kubernetes/config/docker/init/src/config/dcae/ves/pw.sh.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +### used to generate random passwords + + +echo '#!/bin/bash' +echo "" + +echo 'cat \' + +for i in CONSOLE GUI CLIENT +do + echo ' |' sed s/${i}_PW/$(echo $i:$(date +%s) | sha256sum | base64 | head -c 20 ; echo)/ \\ +done + |