20 lines
427 B
Bash
20 lines
427 B
Bash
#!/bin/sh
|
|
|
|
# Setup HTTP Server
|
|
if [[ "$HTTP_SERVER_DISABLE" == "false" ]]; then
|
|
# Set Port
|
|
sed -i "s/^.*server\.port.*/server.port = $HTTP_SERVER_PORT/" /etc/lighttpd/lighttpd.conf
|
|
|
|
# Start lighttpd
|
|
lighttpd -f /etc/lighttpd/lighttpd.conf
|
|
fi
|
|
|
|
# Start LLDP Deamon
|
|
lldpd
|
|
|
|
# Work through entrypoint scripts
|
|
find /docker-entrypoint-initdb.d/ -type f -executable -exec /bin/sh {} \;
|
|
|
|
# Open Shell for User
|
|
/bin/bash
|