Skip to content

Commit fc1f65e

Browse files
committed
dashboard-settings.json references removed.
1 parent 32bd8e8 commit fc1f65e

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

scripts/fixconfigs.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ fi
8585
mytemp=$(mktemp -d -p "${RG_HOME}/tmp" -t "config.old.XXX")
8686
echo "$mytemp"
8787
cp "${RG_HOME}/config/config.json" "$mytemp"
88-
cp "${RG_HOME}/config/dashboard-settings.json" "$mytemp"
8988
cp "${RG_HOME}/config/snsConfig.json" "$mytemp"
9089
cp "${RG_HOME}/config/mongo-config.json" "$mytemp"
9190
cp "${RG_HOME}/config/global-config.json" "$mytemp"

scripts/fixsecrets.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
version="0.1.3"
33
echo "Fixing secrets...(fixsecrets.sh v$version)"
44

5-
[ -z $RG_HOME ] && RG_HOME='/opt/deploy/sp2'
5+
[ -z "$RG_HOME" ] && RG_HOME='/opt/deploy/sp2'
66
echo "RG_HOME=$RG_HOME"
77

8-
cd "$RG_HOME"
9-
old_secrets=$(docker secret ls | grep -i sp2prod | awk '{print $1}' )
8+
cd "$RG_HOME" || echo "Could not cd to $RG_HOME" && exit 1
9+
old_secrets=$(docker secret ls | grep -i sp2prod | awk '{print $1}')
1010
if [ ! -z "$old_secrets" ]; then
11-
echo "Found old secrets. Removing..."
12-
docker secret rm $old_secrets
11+
echo "Found old secrets. Removing..."
12+
docker secret rm "$old_secrets"
1313
fi
14-
docker secret create sp2prod-dashboard-settings.json ./config/dashboard-settings.json
1514
docker secret create sp2prod-config.json ./config/config.json
1615
docker secret create sp2prod-alert-config.json ./config/alert-config.json

0 commit comments

Comments
 (0)