Add emergency Console (#705)

* Add emergency Console

* fix lint
This commit is contained in:
Pascal Vizeli 2020-06-02 23:28:13 +02:00 committed by GitHub
parent 917f022614
commit ee13d1fb45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,12 +3,18 @@
# Run logging cli
# ==============================================================================
docker container exec \
-ti hassio_cli \
/usr/bin/cli.sh \
# Run CLI container
if [ "$(docker ps -q -f name=hassio_cli)" ]; then
docker container exec \
-ti hassio_cli \
/usr/bin/cli.sh \
# Jump to root login shell
if [ $? -eq 10 ]; then
# Jump to root login shell
if [ $? -eq 10 ]; then
/bin/ash -l
fi
else
echo "[ERROR] Somethings going wrong! Jump into emergency console..."
/bin/ash -l
fi