[bitnami/zookeeper] Update libzookeeper.sh use is_mounted_dir_empty (#79675)
Update libzookeeper.sh use is_mounted_dir_empty is_dir_empty fails on vanilla K8s with vsphere-thin storage class because lost+found present in data dir Signed-off-by: DomS <108071909+DomS4GH@users.noreply.github.com>
This commit is contained in:
parent
5d34457bcb
commit
2f60fd6912
|
|
@ -165,7 +165,7 @@ zookeeper_initialize() {
|
|||
info "User injected custom configuration detected!"
|
||||
fi
|
||||
|
||||
if is_dir_empty "$ZOO_DATA_DIR"; then
|
||||
if is_mounted_dir_empty "$ZOO_DATA_DIR"; then
|
||||
info "Deploying ZooKeeper from scratch..."
|
||||
echo "$ZOO_SERVER_ID" >"${ZOO_DATA_DIR}/myid"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue