|
@@ -5,8 +5,14 @@ logger "Running post-refresh ${SNAP_NAME} (uuid: ${UUID})"
|
|
|
|
|
|
logger "Running config test"
|
|
|
set -e
|
|
|
-# CC="${SNAP_DATA}/custom_components"
|
|
|
-# CCT="${SNAP_DATA}/.custom_components"
|
|
|
+CC="${SNAP_DATA}/custom_components"
|
|
|
+CCT="${SNAP_DATA}/.custom_components"
|
|
|
+
|
|
|
+if [ -d "${CCT}" ]; then
|
|
|
+ if [ ! -d "${CC}" ]; then
|
|
|
+ mv "${CCT}" "${CC}"
|
|
|
+ fi
|
|
|
+fi
|
|
|
#
|
|
|
# if [ -d "${CC}" ]; then
|
|
|
# logger "Disabling custom components"
|