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

Commit

Permalink
Merge pull request #17 from anonymouse64/bugfix/install-hook
Browse files Browse the repository at this point in the history
Fix snap install by creating directory before copying
  • Loading branch information
SteveOss authored Jul 8, 2019
2 parents 4d03f64 + fbdb622 commit ccfe10f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snap/hooks/install
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ if [ ! -f "$SNAP_DATA/config/edgex-device-grove/res/configuration.toml" ]; then
"$SNAP_DATA/config/edgex-device-grove/res/configuration.toml"
fi

cp "$SNAP/config/edgex-device-grove/res/profiles/Grove_Device.yaml" "$SNAP_DATA/config/edgex-device-grove/res/profiles/Grove_Device.yaml"
mkdir -p $SNAP_DATA/config/edgex-device-grove/res/profiles
if [ ! -f "$SNAP_DATA/config/edgex-device-grove/res/profiles/Grove_Device.yaml" ]; then
cp "$SNAP/config/edgex-device-grove/res/profiles/Grove_Device.yaml" "$SNAP_DATA/config/edgex-device-grove/res/profiles/Grove_Device.yaml"
fi

0 comments on commit ccfe10f

Please sign in to comment.