From 79e255986cccd65600a8692d93d16227a74b1d58 Mon Sep 17 00:00:00 2001 From: Roman Vanicek Date: Fri, 27 Feb 2026 10:34:50 +0000 Subject: [PATCH] FIX if typo --- entrypoint.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 5054301..3ca230a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,10 +2,10 @@ # Loosely based on https://github.com/fjudith/docker-samba-join-ad/tree/master/sssd -if [ "$1" = "ctdb"]; then +if [ "$1" = "ctdb" ]; then # Run ctdbd node and skip supervisord entirely - if [ -z "$CLUSTER_NAME" ]; then - echo 'The cluster DNS name CLUSTER_NAME must be provided' + if [ -z "$CLUSTER_NODE_NAMES" ]; then + echo 'The CTDB cluster nodes DNS names CLUSTER_NODE_NAMES must be provided' exit 1 fi if [ -z "$CLUSTER_SYSDIR_SHARED" ]; then @@ -50,16 +50,12 @@ if [ ! -f /etc/timezone ] && [ ! -z "$TZ" ]; then fi # Clustering -if [ -z "$CLUSTER_NODE_NAMES" ]; then +if [ -z "$CLUSTER_NAME" ]; then CTDB_ENABLED=false ETC_DIR=/etc/samba PRINTERDRIVERS_DIR=/var/lib/samba/printerdrivers mkdir -p "$PRINTERDRIVERS_DIR" else - if [ -z "$CLUSTER_NAME" ]; then - echo 'The cluster DNS name CLUSTER_NAME must be provided' - exit 1 - fi if [ -z "$CLUSTER_SYSDIR_SHARED" ]; then echo 'System persistent directory shared across the cluster CLUSTER_SYSDIR_SHARED must be provided' exit 1