浏览代码

Remove config test as it results in a form of deadlocks on failed updates

Joachim M. Giæver 3 年之前
父节点
当前提交
415f8cd7a0
共有 1 个文件被更改,包括 20 次插入3 次删除
  1. 20 3
      scripts/hooks/post-refresh

+ 20 - 3
scripts/hooks/post-refresh

@@ -3,6 +3,23 @@
 source "${SNAP}/init"
 logger "Running post-refresh ${SNAP_NAME} (uuid: ${UUID})"
 
-logger "Running config test"
-set -e
-$SNAP/bin/hass --script check_config --config "${SNAP_DATA}"
+# Temporarely removed
+# 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
+#
+# $SNAP/bin/hass --script check_config --config "${SNAP_DATA}"
+# RES=$?
+#
+# if [ -d "${CC}" ]; then
+#     logger "Enabling custom components"
+#     mv "${CCT}" "${CC}"
+# fi
+#
+# exit $RES