coreos-home-server/service/lldap/container/run-lldap
Alex Palaistras 01a8f60452 lldap: Move to binary for container build
Binary builds are now available for LLDAP, which simplifies and makes
the build process much quicker. In addition, multi-stage builds are
used, which again help with caching.
2024-01-03 17:05:30 +00:00

13 lines
339 B
Bash
Executable File

#!/bin/sh
set -eu
# Create configuration file from collected templates.
envsubst < /etc/lldap/config.toml.template > /etc/lldap/config.toml
# Crrect permissions for data files.
chown -R /var/lib/lldap
# Run entrypoint under specific user.
cd /usr/share/lldap
exec gosu lldap /usr/bin/lldap run --config-file /etc/lldap/config.toml "$@"