mirror of
https://github.com/jitsi/docker-jitsi-meet.git
synced 2025-10-15 05:50:59 +02:00
web: prevent s6 from restarting cron if it shouldn't be run
This commit is contained in:
parent
42a43462d5
commit
ba011900fb
@ -1,7 +1,10 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
if [[ $DISABLE_HTTPS -ne 1 ]]; then
|
if [[ $DISABLE_HTTPS -ne 1 ]] && \
|
||||||
if [[ $ENABLE_LETSENCRYPT -eq 1 ]]; then
|
[[ $ENABLE_LETSENCRYPT -eq 1 ]]; then
|
||||||
exec cron -f
|
exec cron -f
|
||||||
fi
|
else
|
||||||
|
# if cron should not be started,
|
||||||
|
# prevent s6 from restarting this script again and again
|
||||||
|
s6-svc -O /var/run/s6/services/cron
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user