Skip to content

Commit

Permalink
Update 05_add_repos.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Feb 3, 2025
1 parent c944b43 commit e1fb85d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts.d/05_add_repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,18 @@ mkdir -p /etc/apt/trusted.gpg.d/
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o mnt/img_root/etc/apt/trusted.gpg.d/docker.gpg
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor -o mnt/img_root/etc/apt/trusted.gpg.d/nodesource.gpg

# List of extra APT repositories
ADD_REPOS=(
"deb [signed-by=/etc/apt/trusted.gpg.d/nodesource.gpg] https://deb.nodesource.com/node_20.x bookworm main"
"deb [signed-by=/etc/apt/trusted.gpg.d/docker.gpg] https://download.docker.com/linux/debian bookworm stable"
# curl https://cli.github.com/packages/githubcli-archive-keyring.gpg > keys/C99B11DEB97541F0.key
#"deb [arch=aarch64] https://cli.github.com/packages stable main"
# curl https://packages.cloud.google.com/apt/doc/apt-key.gpg > keys/8B57C5C2836F4BEB.key
# "deb https://packages.cloud.google.com/apt coral-cloud-stable main"
#"deb https://packages.cloud.google.com/apt coral-cloud-stable main"
)

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

if [[ "${ADD_REPOS:-}" && ! -f "$LIST" ]] ; then
install_stuff
for repo in "${ADD_REPOS[@]}" ; do
echo "$repo"
done > $LIST || die "Could not add repos ${ADD_REPOS[*]}"
Expand Down

0 comments on commit e1fb85d

Please sign in to comment.