@@ -1,6 +0,0 @@
-#!/bin/sh -e
-
-cp -rf $SNAP/hacs $SNAP_DATA/custom_components/hacs
-echo "Copyied data to Home Assistant:"
-echo "From: $SNAP/hacs -"
-echo "To: $SNAP_DATA/custom_components/hacs"
@@ -1,4 +0,0 @@
-rm -rf $SNAP_DATA/custom_components/hacs
-echo "Removed: $SNAP_DATA/custom_components/hacs"
@@ -27,7 +27,7 @@ plugs:
default-provider: home-assistant-snap
hooks:
- install:
+ post-refresh:
plugs: [lib-hacs]
remove:
@@ -41,9 +41,3 @@ parts:
custom_components/hacs: hacs
stage:
- hacs
- configure-hooks:
- plugin: dump
- source: hooks
- organize:
- install.sh: snap/hooks/post-refresh
- uninstall.sh: snap/hooks/remove