Skip to content

Commit 529af98

Browse files
committed
fix(install): character escaping issues with env variable replacement
1 parent cf06794 commit 529af98

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install/install_nomad.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ generateRandomPass() {
103103
local password
104104

105105
# Generate random password using /dev/urandom
106-
password=$(tr -dc 'A-Za-z0-9!@#$%^&*()_+=-' < /dev/urandom | head -c "$length")
106+
password=$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c "$length")
107107

108108
echo "$password"
109109
}
@@ -246,9 +246,9 @@ download_management_compose_file() {
246246
fi
247247
echo -e "${GREEN}#${RESET} Docker compose file downloaded successfully to $compose_file_path.\\n"
248248

249-
local app_key=$(generateRandomPass 32)
250-
local db_root_password=$(generateRandomPass 16)
251-
local db_user_password=$(generateRandomPass 16)
249+
local app_key=$(generateRandomPass)
250+
local db_root_password=$(generateRandomPass)
251+
local db_user_password=$(generateRandomPass)
252252

253253
# Inject dynamic env values into the compose file
254254
echo -e "${YELLOW}#${RESET} Configuring docker-compose file env variables...\\n"

0 commit comments

Comments
 (0)