guacamole

This commit is contained in:
James Turland
2025-06-27 23:35:50 +01:00
parent 690ea8e042
commit 2f8a30d715
3 changed files with 117 additions and 0 deletions

17
Guacamole/prepare.sh Normal file
View 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"