Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Commit

Permalink
snapcraft.yaml: specify ProfilesDir as $SNAP_DATA/.../profiles
Browse files Browse the repository at this point in the history
This will enable automatic import of the device profile copied into $SNAP_DATA
by the install hook.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
  • Loading branch information
anonymouse64 committed Aug 2, 2019
1 parent ccfe10f commit 2f9b01c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ parts:
-e s'@Host = \"edgex-device-grove\"@Host = \"localhost\"@' \
-e s'@Host = \"edgex-core-data\"@Host = \"localhost\"@' \
-e s'@Host = \"edgex-core-metadata\"@Host = \"localhost\"@' \
-e s'@ProfilesDir = \"\"@ProfilesDir = \"\$SNAP_DATA/config/edgex-device-grove/res/profiles\"@' \
$SNAPCRAFT_PART_INSTALL/res/configuration.toml
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/doc/edgex-device-grove
mkdir -p $SNAPCRAFT_PART_INSTALL/config
Expand Down

0 comments on commit 2f9b01c

Please sign in to comment.