mirror of
https://github.com/lldap/lldap.git
synced 2024-11-24 08:45:08 +00:00
f363ff9437
New images with "-rootless" tags will automatically get released on the docker registry.
20 lines
567 B
Bash
Executable file
20 lines
567 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
CONFIG_FILE=/data/lldap_config.toml
|
|
|
|
if [ ! -f "$CONFIG_FILE" ]; then
|
|
echo "[entrypoint] Copying the default config to $CONFIG_FILE"
|
|
echo "[entrypoint] Edit this $CONFIG_FILE to configure LLDAP."
|
|
if cp /app/lldap_config.docker_template.toml $CONFIG_FILE; then
|
|
echo "Configuration copied successfully."
|
|
else
|
|
echo "Fail to copy configuration, check permission on /data or manually create one by copying from LLDAP repository"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
echo "> Starting lldap.."
|
|
echo ""
|
|
exec /app/lldap "$@"
|
|
exec "$@"
|