Files
container-openldap/services/openldap-cron/process.sh
T
2026-10-07 21:50:54 +02:00

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 "$@"