mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-11-14 11:04:28 +08:00
cc9dbc9590
Signed-off-by: Simon L <szaimen@e.mail.de>
23 lines
482 B
Bash
23 lines
482 B
Bash
#!/bin/bash
|
|
|
|
if [ -z "$INSTANCE_ID" ]; then
|
|
echo "You need to provide an instance id."
|
|
exit 1
|
|
fi
|
|
|
|
echo "$INSTANCE_ID" > /var/www/domaincheck/index.html
|
|
|
|
if [ -z "$APACHE_PORT" ]; then
|
|
export APACHE_PORT="443"
|
|
fi
|
|
|
|
CONF_FILE="$(sed "s|ipv6-placeholder|\[::\]:$APACHE_PORT|" /lighttpd.conf)"
|
|
echo "$CONF_FILE" > /etc/lighttpd/lighttpd.conf
|
|
|
|
# Check config file
|
|
lighttpd -tt -f /etc/lighttpd/lighttpd.conf
|
|
|
|
# Run server
|
|
lighttpd -D -f /etc/lighttpd/lighttpd.conf
|
|
|
|
exec "$@"
|