Skip to content

Commit

Permalink
snap: cleanup edgex-mongo part config
Browse files Browse the repository at this point in the history
Cleanup the configuration changes made in the edgex-mongo
part. In particular, a sed script was being applied which
updates a log file path, however the configuration file
being edited doesn't include a log file path.

Signed-off-by: Tony Espy <espy@canonical.com>
  • Loading branch information
tonyespy authored and anonymouse64 committed Mar 6, 2020
1 parent a538749 commit 5e1b4e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,7 @@ parts:
# these things are also configurable by the user, that handling is done in
# the install hook
cat "./cmd/res/configuration.toml" | \
sed -e s:./logs/security-proxy-setup.log:\$SNAP_COMMON/security-proxy-setup.log: \
-e "s@TokenPath = \"/vault/config/assets/resp-init.json\"@TokenPath = \"\$SNAP_DATA/secrets/edgex-mongo/secrets-token.json\"@" \
sed -e "s@TokenPath = \"/vault/config/assets/resp-init.json\"@TokenPath = \"\$SNAP_DATA/secrets/edgex-mongo/secrets-token.json\"@" \
-e "s@CACertPath = \"/vault/config/pki/EdgeXFoundryCA/EdgeXFoundryCA.pem\"@CACertPath = \"\$SNAP_DATA/pki/EdgeXFoundryCA/EdgeXFoundryCA.pem\"@" \
> \
"$SNAPCRAFT_PART_INSTALL/config/edgex-mongo/res/configuration.toml"
Expand Down

0 comments on commit 5e1b4e8

Please sign in to comment.