Skip to content

Commit

Permalink
Do not use apt in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
hiltonlima committed Jun 13, 2024
1 parent 5ab4f94 commit b6f9870
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend
2 changes: 1 addition & 1 deletion scripts/pi-setup/install-pi-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ SAVEIFS=$IFS
IFS=$(echo -en "\r")
for package in ${packagelist[@]}; do
print_script_step "Instaling package: ${package[@]}"
sudo DEBIAN_FRONTEND=noninteractive sudo apt satisfy ${package[@]} -y --allow-downgrades
sudo DEBIAN_FRONTEND=noninteractive sudo apt-get satisfy ${package[@]} -y --allow-downgrades
done
IFS=$SAVEIFS

Expand Down
2 changes: 1 addition & 1 deletion scripts/ubuntu/1-install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ SAVEIFS=$IFS
IFS=$(echo -en "\r")
for package in ${packagelist[@]}; do
print_script_step "Instaling package: ${package[@]}"
sudo DEBIAN_FRONTEND=noninteractive apt satisfy ${package[@]} -y --allow-downgrades
sudo DEBIAN_FRONTEND=noninteractive apt-get satisfy ${package[@]} -y --allow-downgrades
done
IFS=$SAVEIFS

Expand Down
2 changes: 1 addition & 1 deletion scripts/ubuntu/1.1-install-docker-repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get update

print_end_of_script
2 changes: 1 addition & 1 deletion scripts/wifi-connect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ source "$SCRIPT_DIR/utils.sh"

print_start_of_script

sudo apt install network-manager
sudo apt-get install network-manager
sudo nmtui-connect

print_end_of_script

0 comments on commit b6f9870

Please sign in to comment.