infrastructure/app/config/restore_configuration.sh
2020-09-21 16:29:49 +02:00

7 lines
218 B
Bash
Executable file

#!/bin/bash
find {configuration,secrets}/$1 -type f \
| grep --perl-regexp --invert-match "\.sample$|\.gen$|\.gitignore|\.sh$" \
| while read filename; do
consul kv put "${filename}" "@${filename}"
done