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