aboutsummaryrefslogtreecommitdiff
path: root/app/config/restore_configuration.sh
blob: 63d71a15aa2cf6219d1aa2511949e55ef9220d1a (plain) (blame)
1
2
3
4
5
6
7
#!/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