Fix indentation

This commit is contained in:
FrozenDragoon 2017-07-26 16:35:16 -05:00
parent 3b91e17316
commit 11ec647a18
1 changed files with 8 additions and 8 deletions

View File

@ -119,16 +119,16 @@ setup_dnsmasq_hostnames() {
}
setup_lighttpd_bind() {
if [[ "$IMAGE" == 'debian' ]] ; then
# if using '--net=host' only bing lighttpd on $ServerIP
HOSTNET='grep "docker" /proc/net/dev/' #docker (docker0 by default) should only be present on the host system
if [ -n "$HOSTNET" ] ; then
if ! grep -q "server.bind" /etc/lighttpd/lighttpd.conf # if the declaration is already there, don't add it again
then
sed -i -E "s/server\.port\s+\=\s+80/server.bind\t\t = \"${ServerIP}\"\nserver.port\t\t = 80/" /etc/lighttpd/lighttpd.conf
if [[ "$IMAGE" == 'debian' ]] ; then
# if using '--net=host' only bing lighttpd on $ServerIP
HOSTNET='grep "docker" /proc/net/dev' #docker (docker0 by default) should only be present on the host system
if [ -n "$HOSTNET" ] ; then
if ! grep -q "server.bind" /etc/lighttpd/lighttpd.conf # if the declaration is already there, don't add it again
then
sed -i -E "s/server\.port\s+\=\s+80/server.bind\t\t = \"${ServerIP}\"\nserver.port\t\t = 80/" /etc/lighttpd/lighttpd.conf
fi
fi
fi
fi
}
setup_php_env() {