From 80638e545f8b2990b219ad8be891fe9c0ccfacca Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Wed, 14 Sep 2011 01:29:05 -0700 Subject: [PATCH] progress on multi-host lxc --- build_lxc.sh | 2 +- stack.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build_lxc.sh b/build_lxc.sh index ce9a45e..63c9e50 100755 --- a/build_lxc.sh +++ b/build_lxc.sh @@ -126,7 +126,7 @@ apt-get -y --force-yes install git-core vim-nox sudo if [ ! -d "~/nfs-stack" ]; then su -c "git clone git://github.com/cloudbuilders/nfs-stack.git ~/nfs-stack" stack fi -su -c "cd ~/nfs-stack && $STACKSH_PARAMS ./stack.sh" stack >> /opt/run.sh.log +nohup su -c "cd ~/nfs-stack && $STACKSH_PARAMS ./stack.sh" stack &> /opt/run.sh.log EOF # Make the run.sh executable diff --git a/stack.sh b/stack.sh index 0f6ea96..62f813a 100755 --- a/stack.sh +++ b/stack.sh @@ -168,6 +168,9 @@ sudo sed -e "s,%DASH_DIR%,$DASH_DIR,g" -i /etc/apache2/sites-enabled/000-default # dashboard can run sudo chown -R www-data:www-data $DASH_DIR +# Edit /etc/mysql/my.cnf to change ‘bind-address’ from localhost (127.0.0.1) to any (0.0.0.0) and restart the mysql service: +sudo sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf +sudo service mysql restart # Glance # ------