You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by dl...@apache.org on 2022/07/11 15:47:06 UTC

[accumulo] branch main updated: checks if file already exists in accumulo-cluster create-config (#2798)

This is an automated email from the ASF dual-hosted git repository.

dlmarion pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 36dd78ce6b checks if file already exists in accumulo-cluster create-config (#2798)
36dd78ce6b is described below

commit 36dd78ce6bbc2aae8db72014b8703f94b9b92ded
Author: Keith Turner <kt...@apache.org>
AuthorDate: Mon Jul 11 11:47:00 2022 -0400

    checks if file already exists in accumulo-cluster create-config (#2798)
    
    
    
    Co-authored-by: EdColeman <de...@etcoleman.com>
    Co-authored-by: Dave Marion <dl...@apache.org>
---
 assemble/bin/accumulo-cluster | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/assemble/bin/accumulo-cluster b/assemble/bin/accumulo-cluster
index f7ffeacf59..c562e2ff0f 100755
--- a/assemble/bin/accumulo-cluster
+++ b/assemble/bin/accumulo-cluster
@@ -429,6 +429,10 @@ function main() {
 
   case "$1" in
     create-config)
+      if [[ -f "$conf"/cluster.yaml ]]; then
+        echo "ERROR : $conf/cluster.yaml already exists, not overwriting"
+        exit 1
+      fi
       cat <<EOF >"$conf"/cluster.yaml
 manager:
   - localhost