post-refresh 497 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. source "${SNAP}/init"
  3. logger "Running post-refresh ${SNAP_NAME} (uuid: ${UUID})"
  4. logger "Running config test"
  5. set -e
  6. # CC="${SNAP_DATA}/custom_components"
  7. # CCT="${SNAP_DATA}/.custom_components"
  8. #
  9. # if [ -d "${CC}" ]; then
  10. # logger "Disabling custom components"
  11. # mv "${CC}" "${CCT}"
  12. # fi
  13. #
  14. $SNAP/bin/hass --script check_config --config "${SNAP_DATA}"
  15. #
  16. # if [ -d "${CC}" ]; then
  17. # logger "Enabling custom components"
  18. # mv "${CCT}" "${CC}"
  19. # fi
  20. #
  21. # exit $RES