fix: Fixes cert choice when pre-set in automations. (#12312)
* fix: Fixes cert choice when pre-set in automations. * squash: fix
This commit is contained in:
parent
da9b5a9156
commit
ee5817539b
|
@ -73,10 +73,15 @@ case "$1" in
|
||||||
# if first time config ask for certs, or if we are reconfiguring
|
# if first time config ask for certs, or if we are reconfiguring
|
||||||
if [ -z "$JVB_HOSTNAME_OLD" ] || [ "$RECONFIGURING" = "true" ] ; then
|
if [ -z "$JVB_HOSTNAME_OLD" ] || [ "$RECONFIGURING" = "true" ] ; then
|
||||||
RET=""
|
RET=""
|
||||||
db_input critical jitsi-meet/cert-choice || true
|
# ask the question only if there is nothing stored, option to pre-set it on install in automations
|
||||||
db_go
|
|
||||||
db_get jitsi-meet/cert-choice
|
db_get jitsi-meet/cert-choice
|
||||||
CERT_CHOICE="$RET"
|
CERT_CHOICE="$RET"
|
||||||
|
if [ -z "$CERT_CHOICE" ] ; then
|
||||||
|
db_input critical jitsi-meet/cert-choice || true
|
||||||
|
db_go
|
||||||
|
db_get jitsi-meet/cert-choice
|
||||||
|
CERT_CHOICE="$RET"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$CERT_CHOICE" = "$UPLOADED_CERT_CHOICE" ]; then
|
if [ "$CERT_CHOICE" = "$UPLOADED_CERT_CHOICE" ]; then
|
||||||
RET=""
|
RET=""
|
||||||
|
|
Loading…
Reference in New Issue