Browse Source

init

merge-requests/64/head
Steven Foerster 5 years ago
parent
commit
85c6766d4d
  1. 5
      scripts/env/guacamole_init.sh
  2. 1
      scripts/services/Mistborn-guacamole.service

5
scripts/env/guacamole_init.sh vendored

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
#!/bin/bash
mkdir -p /opt/mistborn_volumes/extra/guacamole/init/ || true
chmod -R +x /opt/mistborn_volumes/extra/guacamole/init/
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --postgres > /opt/mistborn_volumes/extra/guacamole/init/initdb.sql

1
scripts/services/Mistborn-guacamole.service

@ -9,6 +9,7 @@ Restart=always @@ -9,6 +9,7 @@ Restart=always
User=root
Group=docker
PermissionsStartOnly=true
ExecStartPre=/opt/mistborn/scripts/env/guacamole_init.sh
# Shutdown container (if running) when unit is stopped
ExecStartPre=/usr/local/bin/docker-compose -f /opt/mistborn/extra/guacamole.yml down

Loading…
Cancel
Save