Skip to content

Commit

Permalink
drop madison for nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
antobinary authored Sep 1, 2023
1 parent 407f5c9 commit fd6daf2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions bbb-install-2.6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,6 @@ main() {
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=18
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
force_update_sources
fi
if ! apt-cache madison nodejs | grep -q node_18; then
err "Did not detect nodejs 18.x candidate for installation"
fi
if ! apt-key list MongoDB | grep -q 4.4; then
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
Expand Down Expand Up @@ -547,17 +543,6 @@ get_IP() {
if [ -z "$IP" ]; then err "Unable to determine local IP address."; fi
}

force_update_sources() {
check_root
while fuser /var/lib/dpkg/lock >/dev/null 2>&1; do echo "Sleeping for 1 second because of dpkg lock"; sleep 1; done

if [ ! "$SOURCES_FETCHED" = true ]; then
apt-get update
SOURCES_FETCHED=true
fi
while fuser /var/lib/dpkg/lock >/dev/null 2>&1; do echo "Sleeping for 1 second because of dpkg lock"; sleep 1; done
}

need_pkg() {
check_root
while fuser /var/lib/dpkg/lock >/dev/null 2>&1; do echo "Sleeping for 1 second because of dpkg lock"; sleep 1; done
Expand Down

0 comments on commit fd6daf2

Please sign in to comment.