diff --git a/core/Dockerfile b/core/Dockerfile index eb21df6abd..36154d20df 100644 --- a/core/Dockerfile +++ b/core/Dockerfile @@ -27,6 +27,7 @@ RUN /home/pi/tools/filebrowser/bootstrap.sh RUN /home/pi/tools/linux2rest/bootstrap.sh RUN /home/pi/tools/logviewer/bootstrap.sh RUN /home/pi/tools/nginx/bootstrap.sh +RUN /home/pi/tools/scripts/bootstrap.sh # Install custom libraries COPY libs /home/pi/libs diff --git a/core/tools/scripts/bootstrap.sh b/core/tools/scripts/bootstrap.sh new file mode 100755 index 0000000000..e75ca2c812 --- /dev/null +++ b/core/tools/scripts/bootstrap.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Exit immediately if a command exits with a non-zero status +set -e + +SCRIPTS_PATH=$(dirname "$0") +cp $PWD/$SCRIPTS_PATH/red-pill /usr/bin/ diff --git a/core/tools/scripts/red-pill b/core/tools/scripts/red-pill new file mode 100755 index 0000000000..8a0298196a --- /dev/null +++ b/core/tools/scripts/red-pill @@ -0,0 +1,5 @@ +echo "You took the red pill." +echo "You stay in Wonderland, and I show you how deep the rabbit hole goes." +echo "Remember, all I'm offering is the truth. Nothing more." +echo "Exiting from docker, welcome to the real world." +sshpass -p raspberry ssh -o StrictHostKeyChecking=no pi@localhost