Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the install script to be easier to run #47

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

epugh
Copy link
Member

@epugh epugh commented Nov 22, 2024

I want to integrate the script into some other processes, so making it take explicit parameters will simplify passing in the urls, especially if they are on https.

@@ -5,21 +5,28 @@ MAJOR='\033[0;34m'
MINOR='\033[0;37m '
RESET='\033[0m' # No Color

: ${OPEN_SEARCH:="localhost:9200"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do this if you want default values:

OPEN_SEARCH=${1:-"default value if not provided"}
OPEN_SEARCH_DASHBOARDS=${2:-"default value if not provided"}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i kinda just prefer variables... versus environment variables... for explicitness...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are local variables.

@epugh epugh merged commit 4ecd52f into main Nov 28, 2024
18 checks passed
@epugh epugh deleted the parameterize_install_script branch November 28, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants