cjdns: reduce password length to 32

Maximum password length per cjdns code is somehwhere less than that, see
https://github.com/cjdelisle/cjdns/blob/ecd01e7681d9b7a06d2673e49fcf9a76a580cb52/client/AdminClient.c#L80

Currently we generate 96 char long passwords that don't work

This changes it so password length is just 32 chars long
This commit is contained in:
Maciej Krüger
2021-03-26 11:35:09 +01:00
committed by Emery Hemingway
parent e8daf611e5
commit c8d2f4a3a8
+1 -1
View File
@@ -245,7 +245,7 @@ in
fi
if [ -z "$CJDNS_ADMIN_PASSWORD" ]; then
echo "CJDNS_ADMIN_PASSWORD=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 96)" \
echo "CJDNS_ADMIN_PASSWORD=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32)" \
>> /etc/cjdns.keys
fi
'';