mirror of
https://github.com/luzifer-docker/jitsi.git
synced 2024-09-19 16:42:55 +00:00
Fix: Prevent breaking on container restart
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
346933c0ab
commit
c4e8ba8e26
10
setup.sh
10
setup.sh
@ -1,6 +1,11 @@
|
|||||||
#!/usr/bin/with-contenv /bin/bash
|
#!/usr/bin/with-contenv /bin/bash
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
|
[ -e /etc/jitsi/.configured ] && {
|
||||||
|
echo "Configuration was already applied, not re-applying"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
cfg_file_path="/usr/local/share/jitsi-config"
|
cfg_file_path="/usr/local/share/jitsi-config"
|
||||||
|
|
||||||
[ -n "${JITSI_DOMAIN:-}" ] || {
|
[ -n "${JITSI_DOMAIN:-}" ] || {
|
||||||
@ -52,3 +57,8 @@ prosodyctl register focus "auth.${JITSI_DOMAIN}" "${JITSI_ADMIN_SECRET}"
|
|||||||
|
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Mark container as initialized not to overwrite config
|
||||||
|
# which would break the container as passwords would be
|
||||||
|
# re-issued
|
||||||
|
touch /etc/jitsi/.configured
|
||||||
|
Loading…
Reference in New Issue
Block a user