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

Fix snap install by creating directory before copying #17

Merged
merged 1 commit into from
Jul 8, 2019

Conversation

anonymouse64
Copy link
Contributor

Previously the snap was uninstallable because the directory didn't exist.

for example:

$ snap install edgex-device-grove_1.0.1-20190706+4d03f64_amd64.snap --dangerous 
error: cannot perform the following tasks:
- Run install hook of "edgex-device-grove" snap if present (run hook "install": cp: cannot create regular file '/var/snap/edgex-device-grove/x1/config/edgex-device-grove/res/profiles/Grove_Device.yaml': No such file or directory)

Previously the snap was uninstallable because the directory didn't
exist.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Copy link
Member

@SteveOss SteveOss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SteveOss SteveOss merged commit ccfe10f into edgexfoundry:master Jul 8, 2019
@anonymouse64 anonymouse64 deleted the bugfix/install-hook branch August 2, 2019 02:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants