Skip to content

Commit 59a35f0

Browse files
authored
Update 05_add_repos.sh
1 parent 713f757 commit 59a35f0

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

scripts.d/05_add_repos.sh

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
#!/bin/bash
2-
3-
architecture="$1"
42
source lib.sh
53

6-
case "$architecture" in
7-
"armhf" | "")
8-
pkgs=("raspbian-archive-keyring" "apt-transport-https")
9-
os=raspbian
10-
;;
11-
"arm64")
12-
pkgs=("apt-transport-https")
13-
os=debian
14-
;;
15-
esac
4+
pkgs=("apt-transport-https")
5+
os=debian
166

177
is_installed() {
188
pkg="$1"
@@ -22,8 +12,6 @@ is_installed() {
2212
install_stuff() {
2313
local need_install
2414

25-
26-
2715
for pkg in ${pkgs[*]}; do
2816
if ! is_installed "$pkg"; then
2917
need_install="$need_install $pkg"
@@ -41,13 +29,13 @@ install_stuff() {
4129
# List of extra APT repositories
4230
ADD_REPOS=(
4331
# curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key > keys/68576280.key
44-
"deb https://deb.nodesource.com/node_10.x buster main"
32+
# "deb https://deb.nodesource.com/node_10.x buster main"
4533
# curl -fsSL https://download.docker.com/linux/debian/gpg > keys/0EBFCD88.key
46-
"deb [arch=$architecture] https://download.docker.com/linux/$os buster stable"
34+
# "deb [arch=$architecture] https://download.docker.com/linux/$os buster stable"
4735
# curl https://cli.github.com/packages/githubcli-archive-keyring.gpg > keys/C99B11DEB97541F0.key
48-
"deb [arch=$architecture] https://cli.github.com/packages buster main"
36+
# "deb [arch=$architecture] https://cli.github.com/packages buster main"
4937
# curl https://packages.cloud.google.com/apt/doc/apt-key.gpg > keys/8B57C5C2836F4BEB.key
50-
"deb https://packages.cloud.google.com/apt coral-cloud-stable main"
38+
# "deb https://packages.cloud.google.com/apt coral-cloud-stable main"
5139
)
5240

5341
LIST=mnt/img_root/etc/apt/sources.list.d/treehouses.list

0 commit comments

Comments
 (0)