Skip to content

Commit 602adf4

Browse files
committed
Workraround for openssl validation func
1 parent 5979d96 commit 602adf4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

install/vst-install.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,16 @@ if [ "$mx_failed" -eq 1 ]; then
211211
exit 1
212212
fi
213213

214+
# Check for ipv6 on loopback interface
215+
check_lo_ipv6=$(/sbin/ifconfig lo| grep 'inet6 addr')
216+
check_rc_ipv6=$(grep 'scope global dev lo' /etc/rc.local)
217+
if [ ! -z "$check_lo_ipv6)" ] && [ -z "$check_rc_ipv6" ]; then
218+
ip addr add ::2/128 scope global dev lo
219+
echo "# Vesta: Workraround for openssl validation func" >> /etc/rc.local
220+
echo "ip addr add ::2/128 scope global dev lo" >> /etc/rc.local
221+
chmod a+x /etc/rc.local
222+
fi
223+
214224

215225
#----------------------------------------------------------#
216226
# Install repository #

0 commit comments

Comments
 (0)