added apt upgrade, -y option

This commit is contained in:
scorpio1 2023-06-13 10:19:05 -07:00
parent 48b3efbaa7
commit f1b9ca41fd
1 changed files with 9 additions and 8 deletions

View File

@ -1,9 +1,10 @@
#!/bin/bash #!/bin/bash
echo 'normal ubuntu 22.04 install, no third party' echo 'normal ubuntu 22.04 install, no third party'
echo 'June 2023' echo 'June 2023'
sudo apt install git sudo apt -y install git
sudo apt-get update sudo apt-get -y update
sudo apt-get install ca-certificates curl gnupg sudo apt -y upgrade
sudo apt-get -y install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg sudo chmod a+r /etc/apt/keyrings/docker.gpg
@ -11,8 +12,8 @@ echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$UBUNTU_CODENAME")" stable" | \ "$(. /etc/os-release && echo "$UBUNTU_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update sudo apt-get -y update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo apt -y upgrade
sudo apt-get install docker-compose sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
git clone https://git.spirirobotics.com/scorpio1/PX4Docker sudo apt-get -y install docker-compose
cd ~/PX4Docker/Docker_PX4 && docker compose up --build sudo docker compose up --build