foodotfiles/secrets/secrets.sh
2022-08-17 14:36:26 +03:00

34 lines
999 B
Bash
Executable File

#!/bin/bash
source $DOTREPO/secrets/env
cat <<SECRET > $DOTREPO/secrets/secrets
export PASS_LIBREFM="$PASS_LIBREFM"
export PASS_MUSICBRAINZ="$PASS_MUSICBRAINZ"
export PASS_LISTENBRAINZ="$PASS_LISTENBRAINZ"
export PASS_MUSPY="$PASS_MUSPY"
export PASS_ARIA2="$PASS_ARIA2"
export PASS_MPD="$PASS_MPD"
export PASS_MPD_ADMIN="$PASS_MPD_ADMIN"
export PASS_IPMI="$PASS_IPMI"
export PASS_MQTT="$PASS_MQTT"
export PASS_EMAIL_HACKER="$PASS_EMAIL_HACKER"
export PASS_EMAIL_MARKO="$PASS_EMAIL_MARKO"
export PASS_EMAIL_ADMIN="$PASS_EMAIL_ADMIN"
export ME_FULLNAME="$ME_FULLNAME"
export ME_ADDRESS="$ME_ADDRESS"
export ME_PHONE="$ME_PHONE"
export ME_EMAIL="$ME_EMAIL"
export WIREGUARD_MIRKWOOD_PRIVKEY="$WIREGUARD_MIRKWOOD_PRIVKEY"
export WIREGUARD_MIRKWOOD_PUBKEY="$WIREGUARD_MIRKWOOD_PUBKEY"
export WIREGUARD_MIRKWOOD_PSK="$WIREGUARD_MIRKWOOD_PSK"
export WIREGUARD_MORIA_PRIVKEY="$WIREGUARD_MORIA_PRIVKEY"
export WIREGUARD_MORIA_PUBKEY="$WIREGUARD_MORIA_PUBKEY"
SECRET
chmod 600 $DOTREPO/secrets/secrets