#!/bin/bash rep="guacamole" apt-get update apt-get install -y curl wget vim if ! which docker ; then curl -s -o getdocker.sh https://get.docker.com bash getdocker.sh gpasswd -a vagrant docker fi [[ -e "$rep" ]] || mkdir "$rep" cd "$rep" || exit 1 cat > docker-compose.yml < initdb/01-initdb.sql < initdb/02-initdb.sql docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql >> initdb/02-initdb.sql cat > initdb/03-initdb.sql <