From 881bc3949a820dbcd0fea25f7eb6b228dc9e9fed Mon Sep 17 00:00:00 2001 From: Rui Lopes Date: Tue, 23 Sep 2025 07:33:26 +0000 Subject: [PATCH] upgrade to nexus 3.84.1-01 --- README.md | 2 +- provision/provision-nexus.sh | 4 ++-- provision/provision-nexus/Makefile | 2 +- provision/provision-nexus/pom.xml | 2 +- provision/use-apt-repository.sh | 7 +------ 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 04acb79..e214909 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ You can also access the database cli shell as: sudo -i # switch to the root user. systemctl stop nexus # make sure nexus is not running while you use the database. su -s /bin/bash nexus # switch to the nexus user. -nexus_home=/opt/nexus/nexus-3.84.0-03 # make sure you have the correct version here. +nexus_home=/opt/nexus/nexus-3.84.1-01 # make sure you have the correct version here. nexus_data="$(realpath $nexus_home/../sonatype-work/nexus3)" install -d $nexus_data/../tmp rm -f $nexus_data/../tmp/h2-*.jar diff --git a/provision/provision-nexus.sh b/provision/provision-nexus.sh index b1791a1..69922c3 100644 --- a/provision/provision-nexus.sh +++ b/provision/provision-nexus.sh @@ -35,12 +35,12 @@ pushd /opt/nexus # see https://help.sonatype.com/en/download-archives---repository-manager-3.html # see https://help.sonatype.com/en/release-notes.html # see https://help.sonatype.com/en/sonatype-nexus-repository.html -nexus_version=3.84.0-03 +nexus_version=3.84.1-01 nexus_home=/opt/nexus/nexus-$nexus_version nexus_tarball=nexus-$nexus_version-linux-x86_64.tar.gz nexus_download_url=https://download.sonatype.com/nexus/3/$nexus_tarball wget -q $nexus_download_url -tar xf $nexus_tarball # NB this creates the $nexus_home (e.g. nexus-3.84.0-03) and sonatype-work directories. +tar xf $nexus_tarball # NB this creates the $nexus_home (e.g. nexus-3.84.1-01) and sonatype-work directories. rm $nexus_tarball sed -i -E 's,#!.+,#!/usr/bin/bash,g' "$nexus_home/bin/nexus" install -d -o nexus -g nexus -m 700 .java # java preferences are saved here (the default java.util.prefs.userRoot preference). diff --git a/provision/provision-nexus/Makefile b/provision/provision-nexus/Makefile index b40c49c..55bf5c1 100644 --- a/provision/provision-nexus/Makefile +++ b/provision/provision-nexus/Makefile @@ -17,7 +17,7 @@ binaries: binaries-download binaries-download: mkdir -p binaries - wget -qO- https://download.sonatype.com/nexus/3/nexus-3.84.0-03-unix.tar.gz \ + wget -qO- https://download.sonatype.com/nexus/3/nexus-3.84.1-01-unix.tar.gz \ | tar xzf - --strip-components 1 -C binaries clean: diff --git a/provision/provision-nexus/pom.xml b/provision/provision-nexus/pom.xml index 4a0993c..5cbdd8d 100644 --- a/provision/provision-nexus/pom.xml +++ b/provision/provision-nexus/pom.xml @@ -8,7 +8,7 @@ 1.0-SNAPSHOT - 3.84.0-03 + 3.84.1-01 diff --git a/provision/use-apt-repository.sh b/provision/use-apt-repository.sh index 9de1bae..80bbb87 100644 --- a/provision/use-apt-repository.sh +++ b/provision/use-apt-repository.sh @@ -36,12 +36,7 @@ gpg --dearmor -o "$nexus_apt_hosted_keyring_path" "/etc/apt/sources.list.d/$nexus_domain-apt-hosted.list" -# NB for some odd reason, nexus 3.84.0-03, does not immediately sign the -# repository metadata after a package is uploaded, so to prevent the -# following error, we loop until apt-get update succeeds. -# E: The repository 'https://nexus.example.com/repository/apt-hosted jammy Release' is not signed. -# see https://github.com/sonatype/nexus-public/issues/725 -while ! apt-get update; do sleep 5; done +apt-get update # install the hello-world package. apt-get install -y hello-world