mirror of
https://github.com/osixia/container-openldap.git
synced 2026-11-06 20:48:18 -04:00
14 lines
286 B
Bash
Executable File
14 lines
286 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
# if container log level is trace:
|
|
# print commands and their arguments as they are executed
|
|
container log level eq trace && set -x
|
|
|
|
if [ "$(id -u)" -ne 0 ]; then
|
|
container log fatal "openldap-cron service must be run as root"
|
|
fi
|
|
|
|
exec crond -f "$@"
|