Browse Source

Tools: create an ardupilot entrypoint instead of hacking .bashrc on docker

apm_2208
Pierre Kancir 3 years ago committed by Peter Barker
parent
commit
99ef5f5957
  1. 9
      Tools/environment_install/install-prereqs-ubuntu.sh

9
Tools/environment_install/install-prereqs-ubuntu.sh

@ -316,7 +316,8 @@ echo "Done!"
SHELL_LOGIN=".profile" SHELL_LOGIN=".profile"
if $IS_DOCKER; then if $IS_DOCKER; then
echo "Inside docker, we add the tools path into .bashrc directly" echo "Inside docker, we add the tools path into .bashrc directly"
SHELL_LOGIN=".bashrc" SHELL_LOGIN=".ardupilot_env"
echo "# ArduPilot env file. Need to be loaded by your Shell." > ~/$SHELL_LOGIN
fi fi
heading "Adding ArduPilot Tools to environment" heading "Adding ArduPilot Tools to environment"
@ -377,4 +378,10 @@ if [[ $SKIP_AP_GIT_CHECK -ne 1 ]]; then
echo "Done!" echo "Done!"
fi fi
fi fi
if $IS_DOCKER; then
echo "Finalizing ArduPilot env for Docker"
echo "source ~/.ardupilot_env">> ~/.bashrc
fi
echo "---------- $0 end ----------" echo "---------- $0 end ----------"

Loading…
Cancel
Save