Forráskód Böngészése

Remove config test on update, we'll use tracks to prevent version upgrades on major.

Joachim M. Giæver 3 éve
szülő
commit
7497233bd8
2 módosított fájl, 8 hozzáadás és 17 törlés
  1. 3 14
      scripts/hooks/post-refresh
  2. 5 3
      snap/snapcraft.yaml

+ 3 - 14
scripts/hooks/post-refresh

@@ -13,17 +13,6 @@ if [ -d "${CCT}" ]; then
         mv "${CCT}" "${CC}"
     fi
 fi
-#
-# if [ -d "${CC}" ]; then
-#     logger "Disabling custom components"
-#     mv "${CC}" "${CCT}"
-# fi
-#
-$SNAP/bin/hass --script check_config --config "${SNAP_DATA}"
-#
-# if [ -d "${CC}" ]; then
-#     logger "Enabling custom components"
-#     mv "${CCT}" "${CC}"
-# fi
-#
-# exit $RES
+logger "Skipping config test"
+#export PIP_USER=1
+#$SNAP/bin/hass --script check_config --config "${SNAP_DATA}"

+ 5 - 3
snap/snapcraft.yaml

@@ -49,6 +49,11 @@ slots:
     write:
       - $SNAP_DATA
 
+hooks:
+  post-refresh:
+    plugs:
+      - network
+
 apps:
   home-assistant-snap:
     command: bin/hass --config $SNAP_DATA
@@ -73,8 +78,6 @@ apps:
   check-config:
     plugs: 
       - network
-      - network-bind
-      - network-control
     environment:
       PIP_USER: 1
     command: bin/hass --script check_config --config $SNAP_DATA -i
@@ -123,7 +126,6 @@ parts:
     stage-packages:
       # - python3-pcapy
       # - libpcap0.8
-      #
       - iptables
       - freeglut3
       - ffmpeg