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

5 lines
234 B
Bash

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