mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-23 16:30:20 +00:00
19 lines
741 B
Bash
19 lines
741 B
Bash
#!/usr/bin/env bash
|
|
|
|
function generatePassword() {
|
|
openssl rand -hex 16
|
|
}
|
|
|
|
JICOFO_AUTH_PASSWORD=$(generatePassword)
|
|
JVB_AUTH_PASSWORD=$(generatePassword)
|
|
JIGASI_XMPP_PASSWORD=$(generatePassword)
|
|
JIBRI_RECORDER_PASSWORD=$(generatePassword)
|
|
JIBRI_XMPP_PASSWORD=$(generatePassword)
|
|
|
|
sed -i.bak \
|
|
-e "s#JICOFO_AUTH_PASSWORD=.*#JICOFO_AUTH_PASSWORD=${JICOFO_AUTH_PASSWORD}#g" \
|
|
-e "s#JVB_AUTH_PASSWORD=.*#JVB_AUTH_PASSWORD=${JVB_AUTH_PASSWORD}#g" \
|
|
-e "s#JIGASI_XMPP_PASSWORD=.*#JIGASI_XMPP_PASSWORD=${JIGASI_XMPP_PASSWORD}#g" \
|
|
-e "s#JIBRI_RECORDER_PASSWORD=.*#JIBRI_RECORDER_PASSWORD=${JIBRI_RECORDER_PASSWORD}#g" \
|
|
-e "s#JIBRI_XMPP_PASSWORD=.*#JIBRI_XMPP_PASSWORD=${JIBRI_XMPP_PASSWORD}#g" \
|
|
"$(dirname "$0")/.env"
|