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/consul/restore_configuration.sh

8 lines
210 B
Bash
Executable File

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