From 602adf42ca2bd4b8b6bc6750a37096e79512a542 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sat, 5 Oct 2013 14:21:33 +0300 Subject: [PATCH] Workraround for openssl validation func --- install/vst-install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install/vst-install.sh b/install/vst-install.sh index 05a11fcb8..a804f27d6 100644 --- a/install/vst-install.sh +++ b/install/vst-install.sh @@ -211,6 +211,16 @@ if [ "$mx_failed" -eq 1 ]; then exit 1 fi +# Check for ipv6 on loopback interface +check_lo_ipv6=$(/sbin/ifconfig lo| grep 'inet6 addr') +check_rc_ipv6=$(grep 'scope global dev lo' /etc/rc.local) +if [ ! -z "$check_lo_ipv6)" ] && [ -z "$check_rc_ipv6" ]; then + ip addr add ::2/128 scope global dev lo + echo "# Vesta: Workraround for openssl validation func" >> /etc/rc.local + echo "ip addr add ::2/128 scope global dev lo" >> /etc/rc.local + chmod a+x /etc/rc.local +fi + #----------------------------------------------------------# # Install repository #