Fix dep versions

This commit is contained in:
2021-03-12 17:25:00 +01:00
parent 26e80ad245
commit ab49ae8a4d
3 changed files with 43 additions and 18 deletions

15
entrypoint.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash -e
[ ! -f /config/custom_components ] || rm -f /config/custom_components
[ -d /config/custom_components ] || mkdir -p /config/custom_components
for component in /usr/local/config/custom_components/*; do
cb="$(basename "${component}")"
[ ! -d "/config/custom_components/${cb}" ] || rm -rf "/config/custom_components/${cb}"
if [ ! -e "/config/custom_components/${cb}" ]; then
echo "Installing custom component ${cb}"
ln -s "${component}" "/config/custom_components/${cb}"
fi
done
exec /init "$@"