mirror of
https://github.com/luzifer-docker/jitsi.git
synced 2024-12-20 09:51:18 +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
1 changed files with 10 additions and 0 deletions
10
setup.sh
10
setup.sh
|
@ -1,6 +1,11 @@
|
|||
#!/usr/bin/with-contenv /bin/bash
|
||||
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"
|
||||
|
||||
[ -n "${JITSI_DOMAIN:-}" ] || {
|
||||
|
@ -52,3 +57,8 @@ prosodyctl register focus "auth.${JITSI_DOMAIN}" "${JITSI_ADMIN_SECRET}"
|
|||
|
||||
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 a new issue