mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-11-15 19:44:31 +08:00
6e9261f306
Signed-off-by: szaimen <szaimen@e.mail.de>
20 lines
357 B
Bash
20 lines
357 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
|
|
|
|
# Check config file
|
|
lighttpd -tt -f /etc/lighttpd/lighttpd.conf
|
|
|
|
# Run server
|
|
lighttpd -D -f /etc/lighttpd/lighttpd.conf
|
|
|
|
exec "$@"
|