Skip to content

Commit

Permalink
Avoiding UUOC in install scripts
Browse files Browse the repository at this point in the history
Updated gitignore file
  • Loading branch information
pct960 committed Dec 28, 2019
1 parent 717e0b0 commit e815556
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
21 changes: 12 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ cluster/docker-compose.json
tests/multi-node/out.xml
tests/multi-node/device_keys
tests/multi-node/owner_keys
iudx-api-server/iudx-api-server-0.0.1-SNAPSHOT-fat.jar
iudx-api-server/bin/*
iudx-authenticator/bin/*
iudx-api-server/.settings/
iudx-authenticator/.settings/
iudx-api-server/.*
iudx-authenticator/.*
iudx-api-server/src/main/generated/iudx/broker/*
iudx-api-server/src/main/generated/iudx/database/*
api-server/api-server-fat.jar
authenticator/authenticator-fat.jar
api-server/bin/*
authenticator/bin/*
api-server/.settings/
authenticator/.settings/
api-server/.*
authenticator/.*
api-server/src/main/generated/vermillion/broker/*
api-server/src/main/generated/vermillion/database/*
authenticator/src/main/generated/vermillion/broker/*
authenticator/src/main/generated/vermillion/database/*

6 changes: 3 additions & 3 deletions single-node/install
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -e
YELLOW='\033[1;33m'
NC='\033[0m'

admin_passwd=`cat /dev/urandom | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 32; echo`
postgres_passwd=`cat /dev/urandom | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 32; echo`
mongo_passwd=`cat /dev/urandom | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 32; echo`
admin_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"
postgres_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"
mongo_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"

if [ -e ".env" ]
then
Expand Down
6 changes: 3 additions & 3 deletions single-node/quick_install
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ APISERVER_JAR="api-server-fat.jar"
AUTH_PATH="../authenticator/target"
AUTH_JAR="authenticator-fat.jar"

admin_passwd=`cat /dev/urandom | env LC_ALL=C tr -dc a-zA-Z0-9 | head -c 32; echo`
postgres_passwd=`cat /dev/urandom | env LC_ALL=C tr -dc a-zA-Z0-9 | head -c 32; echo`
mongo_passwd=`cat /dev/urandom | env LC_ALL=C tr -dc a-zA-Z0-9 | head -c 32; echo`
admin_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"
postgres_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"
mongo_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"

if [ -e ".env" ]
then
Expand Down

0 comments on commit e815556

Please sign in to comment.