Skip to content
Snippets Groups Projects
Commit 2d6a4e09 authored by Alexey Golubev's avatar Alexey Golubev Committed by Alexey Golubev
Browse files

Fix crash on system without ipv6

parent 5031b7f9
No related branches found
No related tags found
No related merge requests found
......@@ -277,6 +277,11 @@ update_nginx_settings(){
ln -sf ${NGINX_ONLYOFFICE_PATH}/ds.conf.tmpl ${NGINX_ONLYOFFICE_CONF}
fi
# check if ipv6 supported otherwise remove it from nginx config
if [ ! -f /proc/net/if_inet6 ]; then
sed '/listen\s\+\[::[0-9]*\].\+/d' -i $NGINX_ONLYOFFICE_CONF
fi
if [ -f "${NGINX_ONLYOFFICE_EXAMPLE_CONF}" ]; then
sed 's/linux/docker/' -i ${NGINX_ONLYOFFICE_EXAMPLE_CONF}
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment