-
Notifications
You must be signed in to change notification settings - Fork 24
/
gen-passwords.sh
executable file
·24 lines (20 loc) · 1.11 KB
/
gen-passwords.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
function generatePassword() {
openssl rand -hex 16
}
JICOFO_COMPONENT_SECRET=`generatePassword`
JICOFO_AUTH_PASSWORD=`generatePassword`
JVB_AUTH_PASSWORD=`generatePassword`
JIGASI_XMPP_PASSWORD=`generatePassword`
JIBRI_RECORDER_PASSWORD=`generatePassword`
JIBRI_XMPP_PASSWORD=`generatePassword`
JITSI_PARTY_DB_PASS=`generatePassword`
PROXY_SESSION_SECRET=`generatePassword`
perl -pi -e "s#JICOFO_COMPONENT_SECRET=.*#JICOFO_COMPONENT_SECRET=${JICOFO_COMPONENT_SECRET}#g" .env
perl -pi -e "s#JICOFO_AUTH_PASSWORD=.*#JICOFO_AUTH_PASSWORD=${JICOFO_AUTH_PASSWORD}#g" .env
perl -pi -e "s#JVB_AUTH_PASSWORD=.*#JVB_AUTH_PASSWORD=${JVB_AUTH_PASSWORD}#g" .env
perl -pi -e "s#JIGASI_XMPP_PASSWORD=.*#JIGASI_XMPP_PASSWORD=${JIGASI_XMPP_PASSWORD}#g" .env
perl -pi -e "s#JIBRI_RECORDER_PASSWORD=.*#JIBRI_RECORDER_PASSWORD=${JIBRI_RECORDER_PASSWORD}#g" .env
perl -pi -e "s#JIBRI_XMPP_PASSWORD=.*#JIBRI_XMPP_PASSWORD=${JIBRI_XMPP_PASSWORD}#g" .env
perl -pi -e "s#JITSI_PARTY_DB_PASS=.*#JITSI_PARTY_DB_PASS=${JITSI_PARTY_DB_PASS}#g" .env
perl -pi -e "s#PROXY_SESSION_SECRET=.*#PROXY_SESSION_SECRET=${PROXY_SESSION_SECRET}#g" .env