mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 15:06:29 +00:00
Create hassio-cli
This commit is contained in:
parent
fe7b567b5e
commit
f9f255782b
15
buildroot-external/rootfs-overlay/usr/sbin/hassio-cli
Normal file
15
buildroot-external/rootfs-overlay/usr/sbin/hassio-cli
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Load configs
|
||||||
|
CONFIG_FILE=/mnt/data/supervisor.json
|
||||||
|
|
||||||
|
CLI="$(jq --raw-output '.cli' $CONFIG_FILE)"
|
||||||
|
DOCKER_ARGS="$(jq --raw-output '.cli_args // empty' $CONFIG_FILE)"
|
||||||
|
|
||||||
|
# Update CLI
|
||||||
|
if docker --pull $CLI > /dev/null 2>&1; then
|
||||||
|
# FIXME: cleanup
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker run --rm -ti $DOCKER_ARGS $CLI
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user