#!/bin/sh # # check if docker is running if ! (docker ps >/dev/null 2>&1) then echo "docker daemon not running, will exit here!" exit fi echo "Preparing folder init and creating ./init/initdb.sql" mkdir ./init >/dev/null 2>&1 chmod -R +x ./init docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql > ./init/initdb.sql echo "done" echo "Preparing folder record and set permissions" mkdir ./record >/dev/null 2>&1 chmod -R 777 ./record echo "done"