Expect null in ReflexChildWriterCustomizer
[honeycomb.git] / vagrant-demo / bootstrap-host.ubuntu1404.sh
1 # Args
2 VAGRANT_VM_NAME="$1"
3 echo "Running bootstrap-host.ubuntu1404.sh..."
4 echo "VAGRANT_VM_NAME = '$VAGRANT_VM_NAME'"
5
6 # Directory and file definitions
7 VAGRANT_HOME="/home/vagrant"
8 VAGRANT_BASHRC="$VAGRANT_HOME/.bashrc"
9 VAGRANT_BASH_ALIASES="$VAGRANT_HOME/.bash_aliases"
10
11 # Set prompt to include VM name if provided.
12 sudo -H -u vagrant perl -i -pe 's/@\\h/@\\\h\$VM_NAME/g' $VAGRANT_BASHRC
13 sudo -H -u vagrant touch $VAGRANT_BASH_ALIASES
14 if [ "$VAGRANT_VM_NAME" != "" ] && [ "$(grep -q VM_NAME $VAGRANT_BASH_ALIASES)" = "" ] ; then 
15     echo -e "\n# Include VM Name in prompt" >> $VAGRANT_BASH_ALIASES
16     echo "export VM_NAME=\"($VAGRANT_VM_NAME)\"" >> $VAGRANT_BASH_ALIASES
17 fi
18 chown vagrant:vagrant $VAGRANT_BASH_ALIASES
19
20 # Fix grub-pc on Virtualbox with Ubuntu
21 export DEBIAN_FRONTEND=noninteractive
22
23 # Add fd.io apt repo in case its needed
24 echo "deb http://nexus.fd.io/content/repositories/fd.io.dev/ ./" > /etc/apt/sources.list.d/99fd.io.list
25
26 # Standard update + upgrade dance
27 apt-get update
28 apt-get upgrade -y
29 apt-get install -y wireshark