docker-services/compute-2-mep/restic/pre_deploy.sh

6 lines
234 B
Bash
Raw Permalink Normal View History

2024-10-22 21:38:09 +02:00
mkdir -p ssh
rm -rf .ssh/*
echo -n '[[RESTIC_PRIVKEY]]' | base64 --decode > ./ssh/id_ed25519
echo -n '[[RESTIC_PUBKEY]]' | base64 --decode > ./ssh/id_ed25519.pub
echo -n '[[RESTIC_KNOWN_HOSTS]]' | base64 --decode > ./ssh/known_hosts