generate_secrets.sh: extract makepw command
This makes it obvious that all passwords are generated with the same parameters
This commit is contained in:
parent
e3b47ce18a
commit
51fb054001
@ -4,13 +4,14 @@ SECRETSFILE=secrets/secrets.nix
|
||||
|
||||
if [ ! -e "$SECRETSFILE" ]; then
|
||||
echo Write secrets to $SECRETSFILE
|
||||
makepw="apg -m 20 -x 20 -M Ncl -n 1"
|
||||
{
|
||||
echo \{
|
||||
echo " bitcoinrpcpassword = \"$(apg -m 20 -x 20 -M Ncl -n 1)\";"
|
||||
echo " lnd-wallet-password = \"$(apg -m 20 -x 20 -M Ncl -n 1)\";"
|
||||
echo " lightning-charge-api-token = \"$(apg -m 20 -x 20 -M Ncl -n 1)\";"
|
||||
echo " liquidrpcpassword = \"$(apg -m 20 -x 20 -M Ncl -n 1)\";"
|
||||
echo " spark-wallet-password = \"$(apg -m 20 -x 20 -M Ncl -n 1)\";"
|
||||
echo " bitcoinrpcpassword = \"$($makepw)\";"
|
||||
echo " lnd-wallet-password = \"$($makepw)\";"
|
||||
echo " lightning-charge-api-token = \"$($makepw)\";"
|
||||
echo " liquidrpcpassword = \"$($makepw)\";"
|
||||
echo " spark-wallet-password = \"$($makepw)\";"
|
||||
echo \}
|
||||
} >> $SECRETSFILE
|
||||
echo Done
|
||||
|
Loading…
Reference in New Issue
Block a user