mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2025-10-03 08:56:18 +00:00
guacamole
This commit is contained in:
17
Guacamole/prepare.sh
Normal file
17
Guacamole/prepare.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/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"
|
Reference in New Issue
Block a user