This repository has been archived on 2023-03-15. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/app/config/restore_configuration.sh

8 lines
218 B
Bash
Raw Normal View History

2019-06-01 14:02:49 +00:00
#!/bin/bash
find {configuration,secrets}/$1 -type f \
2020-09-21 14:29:49 +00:00
| grep --perl-regexp --invert-match "\.sample$|\.gen$|\.gitignore|\.sh$" \
2019-06-01 14:02:49 +00:00
| while read filename; do
consul kv put "${filename}" "@${filename}"
done