mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
move
This commit is contained in:
parent
f456a5c626
commit
0949cba7be
92 changed files with 19 additions and 58 deletions
12
nix/secrets/encrypt.sh
Executable file
12
nix/secrets/encrypt.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
dir=$(realpath "$(dirname "$0")")
|
||||
cd "$dir"
|
||||
|
||||
for secret in ../../secrets-git-crypt/*; do
|
||||
agename="$(basename "$secret" | sed 's/\./_/').age"
|
||||
rm -f "$agename"
|
||||
agenix -e "$agename" < "$secret"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue