Merge pull request #7 from Zash/patch-1

Improve efficiency of random secret generation
This commit is contained in:
Matthew Wild 2020-06-05 12:08:43 +01:00 committed by GitHub
commit b2d3caede6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ chown -R letsencrypt:letsencrypt /snikket/letsencrypt
## Generate secret for coturn auth if necessary
if ! test -f /snikket/prosody/turn-auth-secret-v2; then
tr -dc 'a-z0-9' < /dev/urandom | head -c32 > /snikket/prosody/turn-auth-secret-v2;
head -c 32 /dev/urandom | base64 > /snikket/prosody/turn-auth-secret-v2;
fi
# COMPAT w/ alpha.20200513: remove older format