Fix dep versions
This commit is contained in:
15
entrypoint.sh
Executable file
15
entrypoint.sh
Executable 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 "$@"
|
||||
Reference in New Issue
Block a user