Add option 'eval'

This commit is contained in:
Max Winterstein
2021-02-27 00:34:33 +01:00
parent 5ffd106fa6
commit e76b9908d5
5 changed files with 85 additions and 35 deletions

View File

@@ -10,13 +10,7 @@ if find /data/iobroker -maxdepth 0 -empty | read v; then
cp -r -v /opt/iobroker_ori/* /opt/iobroker/
chown -R $SETUID:$SETGID /data/iobroker/
fi
## some debugging stuff
#echo ---
#ls -liah /opt/
#echo ---
#ls -liah /data/iobroker
#echo ---
#ls -liah /opt/iobroker/
# end hass addon custom mount block
# Setting healthcheck status to "starting"
@@ -497,6 +491,9 @@ echo ' '
echo "Starting ioBroker..."
echo ' '
echo "Running 'eval' commands"
eval $(jq -r .eval /data/options.json)
# Setting healthcheck status to "running"
echo "running" > /opt/scripts/.docker_config/.healthcheck