Ver código fonte

Remove rename of custom_components

Joachim M. Giæver 3 anos atrás
pai
commit
dbcec2bc55
1 arquivos alterados com 15 adições e 16 exclusões
  1. 15 16
      scripts/hooks/post-refresh

+ 15 - 16
scripts/hooks/post-refresh

@@ -5,20 +5,19 @@ logger "Running post-refresh ${SNAP_NAME} (uuid: ${UUID})"
 
 logger "Running config test"
 set -e
-CC="${SNAP_DATA}/custom_components"
-CCT="${SNAP_DATA}/.custom_components"
-
-if [ -d "${CC}" ]; then
-    logger "Disabling custom components"
-    mv "${CC}" "${CCT}"
-fi
-
+# CC="${SNAP_DATA}/custom_components"
+# CCT="${SNAP_DATA}/.custom_components"
+#
+# if [ -d "${CC}" ]; then
+#     logger "Disabling custom components"
+#     mv "${CC}" "${CCT}"
+# fi
+#
 $SNAP/bin/hass --script check_config --config "${SNAP_DATA}"
-RES=$?
-
-if [ -d "${CC}" ]; then
-    logger "Enabling custom components"
-    mv "${CCT}" "${CC}"
-fi
-
-exit $RES
+#
+# if [ -d "${CC}" ]; then
+#     logger "Enabling custom components"
+#     mv "${CCT}" "${CC}"
+# fi
+#
+# exit $RES