mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2025-08-14 09:22:21 +00:00
17 lines
467 B
Bash
17 lines
467 B
Bash
|
#!/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"
|