mirror of
https://github.com/revoltchat/self-hosted.git
synced 2025-12-28 06:34:36 +00:00
fix(generate_config.sh): tail compatibility (#158)
This commit is contained in:
parent
196900a6dd
commit
d8d9721a16
@ -17,7 +17,7 @@ echo "" >> Revolt.toml
|
||||
echo "[pushd.vapid]" >> Revolt.toml
|
||||
openssl ecparam -name prime256v1 -genkey -noout -out vapid_private.pem
|
||||
echo "private_key = \"$(base64 -i vapid_private.pem | tr -d '\n' | tr -d '=')\"" >> Revolt.toml
|
||||
echo "public_key = \"$(openssl ec -in vapid_private.pem -outform DER|tail -c 65|base64|tr '/+' '_-'|tr -d '\n'|tr -d '=')\"" >> Revolt.toml
|
||||
echo "public_key = \"$(openssl ec -in vapid_private.pem -outform DER|tail --bytes 65|base64|tr '/+' '_-'|tr -d '\n'|tr -d '=')\"" >> Revolt.toml
|
||||
rm vapid_private.pem
|
||||
|
||||
# encryption key for files
|
||||
|
||||
Loading…
Reference in New Issue
Block a user