mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Workraround for openssl validation func
This commit is contained in:
parent
5979d96be7
commit
602adf42ca
1 changed files with 10 additions and 0 deletions
|
@ -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 #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue