RF-AD/Server/Program/entrypoint.sh
Paul Gonçalves Monnet a24d302400 Remove test echo
2024-06-07 16:34:07 +02:00

17 lines
371 B
Bash

#!/bin/sh
ls /app/Program
# Create env.py with environment variables
cat <<EOT > /app/env.py
LDAPUSER = "${LDAPUSER}"
LDAPPASS = "${LDAPPASS}"
LDAP_SERVER = "${LDAP_SERVER}"
DOOR_ACCESS_GROUPS_DN = "${DOOR_ACCESS_GROUPS_DN}"
USERS_DN = "${USERS_DN}"
DBFILE = "${DBFILE}"
WebServerPORT = ${WebServerPORT}
EOT
# Run the main server script
exec python3 /Program/server.py