From c49dfc59ea6640007add724ad26fc6aa9642b9f5 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 20 Sep 2013 22:12:26 -0300 Subject: [PATCH] Minor tweaks for the base ubuntu box script --- boxes/build-ubuntu-box.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxes/build-ubuntu-box.sh b/boxes/build-ubuntu-box.sh index 07c56e9..880a96c 100755 --- a/boxes/build-ubuntu-box.sh +++ b/boxes/build-ubuntu-box.sh @@ -19,12 +19,13 @@ set -e # 0 - Initial setup and sanity checks TODAY=$(date -u +"%Y-%m-%d") -NOW="${TODAY} $(date -u +'%H:%M:%S') UTC" +NOW=$(date -u) RELEASE=${1:-"raring"} ARCH=${2:-"amd64"} PKG=vagrant-lxc-${RELEASE}-${ARCH}-${TODAY}.box WORKING_DIR=/tmp/vagrant-lxc-${RELEASE} VAGRANT_KEY="ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key" +ROOTFS=/var/lib/lxc/${RELEASE}-base/rootfs # Providing '1' will enable these tools CHEF=${CHEF:-0} @@ -60,7 +61,6 @@ fi ################################################################################## # 2 - Prepare vagrant user -ROOTFS=/var/lib/lxc/${RELEASE}-base/rootfs mv ${ROOTFS}/home/{ubuntu,vagrant} chroot ${ROOTFS} usermod -l vagrant -d /home/vagrant ubuntu chroot ${ROOTFS} groupmod -n vagrant ubuntu