FIX if typo
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-27 10:34:50 +00:00
parent feba1da3df
commit 79e255986c

View File

@@ -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