forked from jeanGaston/RF-AD
16 lines
359 B
Bash
16 lines
359 B
Bash
#!/bin/sh
|
|
# Create env.py with environment variables
|
|
cat <<EOT > /Program/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
|