mirror of
https://github.com/dokku/dokku.git
synced 2026-08-29 10:08:53 +02:00
18 lines
438 B
Plaintext
18 lines
438 B
Plaintext
|
|
#!/usr/bin/env bash
|
||
|
|
set -eo pipefail
|
||
|
|
[[ $DOKKU_TRACE ]] && set -x
|
||
|
|
|
||
|
|
trigger-scheduler-docker-local-scheduler-uses-host-cron() {
|
||
|
|
declare desc="reports whether the scheduler writes cron tasks to the host crontab"
|
||
|
|
declare trigger="scheduler-uses-host-cron"
|
||
|
|
declare DOKKU_SCHEDULER="$1"
|
||
|
|
|
||
|
|
if [[ "$DOKKU_SCHEDULER" != "docker-local" ]]; then
|
||
|
|
return
|
||
|
|
fi
|
||
|
|
|
||
|
|
echo "true"
|
||
|
|
}
|
||
|
|
|
||
|
|
trigger-scheduler-docker-local-scheduler-uses-host-cron "$@"
|