aboutsummaryrefslogtreecommitdiff
path: root/app_config/restore_configuration.sh
blob: 33742e52621e9c6fe8b6291c71d4e7769b7b27fc (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$" \
  | while read filename; do
      consul kv put "${filename}" "@${filename}"
    done