public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nessus-agent-bin/
Date: Fri, 28 Aug 2020 12:42:29 +0000 (UTC)	[thread overview]
Message-ID: <1598618453.9132b305a6b5a5663378b361c696757bfb84d39a.marecki@gentoo> (raw)

commit:     9132b305a6b5a5663378b361c696757bfb84d39a
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 28 12:40:53 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Aug 28 12:40:53 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9132b305

net-analyzer/nessus-agent-bin: handle version updates properly

Nessus must be made aware of a new version of its core components having
been installed. Do it the same way as upstream distro packages, i.e. use
the undocumented nessuscli command 'install'.

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 ...us-agent-bin-8.0.0.ebuild => nessus-agent-bin-8.0.0-r1.ebuild} | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0.ebuild b/net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0-r1.ebuild
similarity index 79%
rename from net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0.ebuild
rename to net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0-r1.ebuild
index d53ad12d43a..bcc8308edd0 100644
--- a/net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0.ebuild
+++ b/net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0-r1.ebuild
@@ -50,6 +50,12 @@ src_install() {
 }
 
 pkg_postinst() {
+	# Actually update Nessus core components. According to upstream packages,
+	# harmless to invoke on fresh installations too - and it may make life easier
+	# for people who had restored Nessus state from backups, had it lying around
+	# from older installations and so on.
+	"${EROOT}"/opt/nessus_agent/sbin/nessuscli install "${EROOT}"/opt/nessus_agent/var/nessus/plugins-core.tar.gz
+
 	if [[ -z "${REPLACING_VERSIONS}" ]]; then
 		elog "In order to link the agent to Tenable.io or an instance of Nessus Manager,"
 		elog "obtain an appropriate linking key and run"
@@ -57,5 +63,7 @@ pkg_postinst() {
 		elog "  /opt/nessus_agent/sbin/nessuscli agent link --key=<key> --host=<host> --port=<port> [optional parameters]"
 		elog ""
 		elog "This can be done before the agent is started."
+	else
+		elog "Please restart the nessusagent service to complete the update process"
 	fi
 }


             reply	other threads:[~2020-08-28 12:42 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-28 12:42 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-09-11  1:27 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nessus-agent-bin/ Rick Farina
2025-09-10 15:11 Rick Farina
2024-06-12 15:23 Marek Szuba
2024-04-07  1:06 Marek Szuba
2024-02-18 10:47 Marek Szuba
2023-12-24 11:45 Marek Szuba
2023-11-21 10:05 Marek Szuba
2023-08-21 12:28 Marek Szuba
2023-07-10 23:04 Marek Szuba
2023-06-07 13:06 Marek Szuba
2023-04-14  8:09 Marek Szuba
2023-04-14  4:04 Sam James
2023-04-03  6:33 Marek Szuba
2023-03-30  8:49 Marek Szuba
2023-03-30  8:31 Marek Szuba
2023-03-30  8:31 Marek Szuba
2023-03-30  8:31 Marek Szuba
2023-03-13 12:02 Marek Szuba
2023-01-20  9:37 Marek Szuba
2022-11-20 22:17 Marek Szuba
2022-09-13 19:45 Rick Farina
2022-06-16 21:45 Marek Szuba
2022-04-01  8:18 Marek Szuba
2022-03-23 23:18 Marek Szuba
2022-02-03  6:56 Marek Szuba
2021-12-17 23:25 Marek Szuba
2021-11-18 21:45 Mike Gilbert
2021-09-27 14:53 Marek Szuba
2021-09-10 20:51 Marek Szuba
2021-07-21 19:45 Marek Szuba
2021-06-24 11:25 Marek Szuba
2021-04-14 16:21 Marek Szuba
2021-03-23  9:19 Marek Szuba
2020-12-09 10:02 Marek Szuba
2020-09-10 11:28 Marek Szuba
2020-08-23 22:20 Marek Szuba
2020-07-21 19:42 Marek Szuba
2020-06-19 18:20 Marek Szuba
2020-03-09 15:45 Marek Szuba
2020-03-09 15:45 Marek Szuba
2019-12-19 15:18 Marek Szuba
2019-10-08 14:57 Marek Szuba
2019-08-19  9:14 Marek Szuba
2019-08-09 15:38 Marek Szuba
2019-08-09 15:38 Marek Szuba
2019-06-11 14:58 Marek Szuba
2019-04-24 16:13 Marek Szuba
2019-04-24 16:12 Marek Szuba
2019-04-24 15:01 Rick Farina
2019-02-05 19:51 Ben Kohler
2018-11-22 10:25 Marek Szuba
2018-11-22 10:25 Marek Szuba
2018-09-10 11:59 Marek Szuba
2017-12-19 12:37 Marek Szuba
2017-12-19 12:37 Marek Szuba
2017-11-06 11:54 Marek Szuba
2017-11-06 11:54 Marek Szuba
2017-08-01  9:53 Marek Szuba
2017-06-12  9:59 Marek Szuba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1598618453.9132b305a6b5a5663378b361c696757bfb84d39a.marecki@gentoo \
    --to=marecki@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox