642e030ca2
This commit fixes the order of enabling the IPv6 support on DevStack. Otherwise installation fails. Change-Id: Ibfd23c108dd2d4718744099cb288cb063e679826
26 lines
512 B
Bash
Executable File
26 lines
512 B
Bash
Executable File
#!/bin/sh
|
|
|
|
getent passwd vagrant > /dev/null
|
|
if [ $? -eq 0 ]; then
|
|
export OS_USER=vagrant
|
|
else
|
|
getent passwd ubuntu > /dev/null
|
|
if [ $? -eq 0 ]; then
|
|
export OS_USER=ubuntu
|
|
fi
|
|
fi
|
|
|
|
set -ex
|
|
|
|
export HOST_IP=127.0.0.1
|
|
|
|
# Enable IPv6
|
|
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=0
|
|
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
# run script
|
|
bash /vagrant/devstack.sh "$1"
|
|
|
|
#set environment variables for kuryr
|
|
su "$OS_USER" -c "echo 'source /vagrant/config/kuryr_rc' >> ~/.bash_profile"
|