diff --git a/elasticsearch/config/configure_s3.sh b/elasticsearch/config/configure_s3.sh index 5ec80832..49c88a25 100644 --- a/elasticsearch/config/configure_s3.sh +++ b/elasticsearch/config/configure_s3.sh @@ -2,7 +2,9 @@ set -e -# Check arguments +# Check number of arguments passed to configure_s3.sh. If it is different from 4 or 5, the process will finish with error. +# param 1: number of arguments passed to configure_s3.sh + function CheckArgs() { if [ $1 != 4 ] && [ $1 != 5 ];then @@ -13,8 +15,15 @@ function CheckArgs() fi } -# Create repository from base_path / (if there is no argument, current version is added) +# Create S3 repository from base_path / (if there is no argument, current version is added) # Repository name would be - (if there is no argument, current version is added) +# param 1: +# param 2: +# param 3: +# param 4: +# param 5: Optional +# output: It will show "acknowledged" if the repository has been successfully created + function CreateRepo() { @@ -49,6 +58,13 @@ function CreateRepo() } +# Run functions CheckArgs and CreateRepo +# param 1: number of arguments passed to configure_s3.sh +# param 2: +# param 3: +# param 4: +# param 5: +# param 6: Optional function Main() {