Browse Source

Move hooks

Joachim M. Giæver 3 years ago
parent
commit
b8c0594a97
3 changed files with 1 additions and 17 deletions
  1. 0 6
      hooks/install.sh
  2. 0 4
      hooks/uninstall.sh
  3. 1 7
      snap/snapcraft.yaml

+ 0 - 6
hooks/install.sh

@@ -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"

+ 0 - 4
hooks/uninstall.sh

@@ -1,4 +0,0 @@
-#!/bin/sh -e
-
-rm -rf $SNAP_DATA/custom_components/hacs
-echo "Removed: $SNAP_DATA/custom_components/hacs"

+ 1 - 7
snap/snapcraft.yaml

@@ -27,7 +27,7 @@ plugs:
     default-provider: home-assistant-snap
 
 hooks:
-  install:
+  post-refresh:
     plugs: [lib-hacs]
   remove:
     plugs: [lib-hacs]
@@ -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