summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-01-20 00:40:57 -0800
committerVishvananda Ishaya <vishvananda@gmail.com>2011-01-20 00:40:57 -0800
commitffe08ea0c5c47ef13a459ac2821e7f706b4070a4 (patch)
treedde793076204901ac3ce46333db2a05993702782
parent9f84019339c6e90dfa517de2bc08ee3e6ab643a9 (diff)
downloadnova-ffe08ea0c5c47ef13a459ac2821e7f706b4070a4.tar.gz
nova-ffe08ea0c5c47ef13a459ac2821e7f706b4070a4.tar.xz
nova-ffe08ea0c5c47ef13a459ac2821e7f706b4070a4.zip
fix ipv6 conditional
-rwxr-xr-xcontrib/nova.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/nova.sh b/contrib/nova.sh
index 87f500eec..41e1e0f7e 100755
--- a/contrib/nova.sh
+++ b/contrib/nova.sh
@@ -62,7 +62,7 @@ if [ -n "$FLAT_INTERFACE" ]; then
echo "--flat_interface=$FLAT_INTERFACE" >>$NOVA_DIR/bin/nova.conf
fi
-if [ -n "$USE_IPV6" ]; then
+if [ "$USE_IPV6" == 1 ]; then
echo "--use_ipv6" >>$NOVA_DIR/bin/nova.conf
fi
@@ -95,7 +95,7 @@ if [ "$CMD" == "install" ]; then
sudo apt-get install -y python-libvirt python-libxml2 python-routes python-cheetah
sudo apt-get install -y python-netaddr python-paste python-pastedeploy python-glance
- if [ -n "$USE_IPV6" ]; then
+ if [ "$USE_IPV6" == 1 ]; then
sudo apt-get install -y radvd
sudo bash -c "echo 1 > /proc/sys/net/ipv6/conf/all/forwarding"
sudo bash -c "echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra"
@@ -122,7 +122,7 @@ function screen_it {
if [ "$CMD" == "run" ]; then
killall dnsmasq
- if [ -n "$USE_IPV6" ]; then
+ if [ "$USE_IPV6" == 1 ]; then
killall radvd
fi
screen -d -m -S nova -t nova