File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ echo "RG_SRC=$RG_SRC"
2525echo " S3_SOURCE=$S3_SOURCE "
2626
2727# First check if the IP at which mongod is listening is correct
28- mymongoip=$( cat /etc/mongod.conf | sed -n -e ' s/bindIp: \([^,]*\).*/\1/p' | sed -e ' s/\s*//' )
28+ mymongoip=$( sed -n -e ' s/bindIp: \([^,]*\).*/\1/p' /etc/mongod.conf | sed -e ' s/\s*//' )
2929echo " Mongod configured to listen at $mymongoip "
3030myip=$( wget -q -O - http://169.254.169.254/latest/meta-data/local-ipv4)
3131echo " Private IP of this machine is $myip "
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ echo "Fixing secrets...(fixsecrets.sh v$version)"
66echo " RG_HOME=$RG_HOME "
77
88old_secrets=$( docker secret ls | grep -i sp2prod | awk ' {print $1}' )
9- if [ ! -z " $old_secrets " ]; then
9+ if [ -n " $old_secrets " ]; then
1010 echo " Found old secrets. Removing..."
1111 echo " $old_secrets " |
1212 while IFS=$' \n ' read -r mysecret; do
You can’t perform that action at this time.
0 commit comments