From 15411768ab132459179b0f39c8afa4b73ee3c1c0 Mon Sep 17 00:00:00 2001 From: Marco Raddatz Date: Fri, 30 Dec 2016 16:38:14 +0100 Subject: [PATCH] Use /bin/bash instead of bash command --- homebridge.sh | 2 +- image/run.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/homebridge.sh b/homebridge.sh index 61a704f..175affe 100755 --- a/homebridge.sh +++ b/homebridge.sh @@ -54,7 +54,7 @@ _rerun() { # Manually open bash _attach() { - docker exec -ti $CONTAINER_NAME bash + docker exec -ti $CONTAINER_NAME /bin/bash } # Container logs diff --git a/image/run.sh b/image/run.sh index f03669c..1800ab3 100755 --- a/image/run.sh +++ b/image/run.sh @@ -9,6 +9,9 @@ install_file="/root/.homebridge/install.sh" package_file="/root/.homebridge/package.json" plugin_folder="/root/.homebridge/plugins" +echo "Logged in as:" +whoami + # Include environment variables if [ -f "$env_file" ] then @@ -41,7 +44,7 @@ if [ -f "$install_file" ] then echo "Installing plugins from $install_file." - bash $install_file + /bin/bash $install_file else echo "$install_file not found." fi