1
0

post-refresh 534 B

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