fix: dvije greske koje su rusile instalaciju

- POSTGRES_PASS generiranje: `tr ... </dev/urandom | head -c 32` puca
  na SIGPIPE (exit 141). Uz `set -euo pipefail` install.sh je tiho
  izlazio prije nego sto je ista instalirao. Zamijenjeno ogranicenim
  citanjem: `head -c 512 /dev/urandom | tr -dc ... | cut -c1-32`.

- docker-compose.yml: guacamole/guacamole:1.5.5 trazi POSTGRESQL_USER,
  a compose je postavljao POSTGRESQL_USERNAME. Kontejner je zavrsavao
  u restart petlji s "FATAL: Missing required environment variables".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-28 16:44:05 +02:00
parent 50c125e0db
commit 5a7e74156e
+2 -2
View File
@@ -141,7 +141,7 @@ if [[ "$DO_WEBGUI" =~ ^[Yy]$ ]]; then
fi fi
# Generirane lozinke # Generirane lozinke
POSTGRES_PASS=$(tr -dc 'A-Za-z0-9' </dev/urandom | head -c 32) POSTGRES_PASS=$(head -c 512 /dev/urandom | LC_ALL=C tr -dc 'A-Za-z0-9' | cut -c1-32)
SECRET_KEY=$(openssl rand -hex 32) SECRET_KEY=$(openssl rand -hex 32)
GUI_SECRET=$(openssl rand -hex 32) GUI_SECRET=$(openssl rand -hex 32)
@@ -304,7 +304,7 @@ services:
GUACD_HOSTNAME: guacd GUACD_HOSTNAME: guacd
POSTGRESQL_HOSTNAME: postgres POSTGRESQL_HOSTNAME: postgres
POSTGRESQL_DATABASE: guacamole_db POSTGRESQL_DATABASE: guacamole_db
POSTGRESQL_USERNAME: guacamole_user POSTGRESQL_USER: guacamole_user
POSTGRESQL_PASSWORD: \${POSTGRES_PASS} POSTGRESQL_PASSWORD: \${POSTGRES_PASS}
volumes: volumes:
- ./extensions:/etc/guacamole/extensions:ro - ./extensions:/etc/guacamole/extensions:ro