Update 3 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 8s

This commit is contained in:
j
2026-01-26 22:01:44 +13:00
parent e994b992b4
commit 20e8e40ee6
3 changed files with 18 additions and 12 deletions

View File

@@ -1,11 +1,11 @@
#!/bin/bash
source "${AGENT_PATH}/common.sh"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
_check_required_env_vars "CONTAINER_NAME" "GRAYLOG_PASSWORD_SECRET" "GRAYLOG_ROOT_PASSWORD"
# Convert plain text password to SHA256 for Graylog
export GRAYLOG_ROOT_PASSWORD_SHA2=$(echo -n "${GRAYLOG_ROOT_PASSWORD}" | sha256sum | cut -d' ' -f1)
GRAYLOG_ROOT_PASSWORD_SHA2=$(echo -n "${GRAYLOG_ROOT_PASSWORD}" | sha256sum | cut -d' ' -f1)
export GRAYLOG_ROOT_PASSWORD_SHA2
# Check Docker
_check_docker_installed || _die "Docker test failed"

View File

@@ -7,7 +7,8 @@ _check_required_env_vars "CONTAINER_NAME" "GRAYLOG_ROOT_PASSWORD"
# It is used to start the service on the server.
# Convert plain text password to SHA256 for Graylog
export GRAYLOG_ROOT_PASSWORD_SHA2=$(echo -n "${GRAYLOG_ROOT_PASSWORD}" | sha256sum | cut -d' ' -f1)
GRAYLOG_ROOT_PASSWORD_SHA2=$(echo -n "${GRAYLOG_ROOT_PASSWORD}" | sha256sum | cut -d' ' -f1)
export GRAYLOG_ROOT_PASSWORD_SHA2
docker compose -p "${CONTAINER_NAME}" up -d || _die "Failed to start Graylog stack"