post-refresh 418 B

123456789101112131415161718
  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. if [ -d "${CCT}" ]; then
  9. if [ ! -d "${CC}" ]; then
  10. mv "${CCT}" "${CC}"
  11. fi
  12. fi
  13. logger "Skipping config test"
  14. #export PIP_USER=1
  15. #$SNAP/bin/hass --script check_config --config "${SNAP_DATA}"