Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a remove hook #258

Open
liquuid opened this issue Feb 20, 2018 · 0 comments
Open

Add a remove hook #258

liquuid opened this issue Feb 20, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@liquuid
Copy link
Contributor

liquuid commented Feb 20, 2018

Is possible add a hook to snap to run before a snap package removing, it will avoid this type of problem:

$ subutai remove snap

 Stop snap "subutai" services ([start snap.subutai.nginx-service.service] failed with exit status 5: Failed to start snap.subu
tai.nginx-service.service: Unit snap.subutai.nginx-service.service not found.                                                  
)                                                                                                                             
Remove data for snap "subutai" (76) (remove /var/snap/subutai/common/lxc/ubuntu16/rootfs/.gitignore: read-only file system)

Documentation about snapcraft hooks:

https://docs.snapcraft.io/build-snaps/hooks

@liquuid liquuid added the bug label Feb 20, 2018
@liquuid liquuid self-assigned this Feb 20, 2018
@dilshat dilshat added this to the 6.2.3 milestone Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants