1 |
commit: 9132b305a6b5a5663378b361c696757bfb84d39a |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 28 12:40:53 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 28 12:40:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9132b305 |
7 |
|
8 |
net-analyzer/nessus-agent-bin: handle version updates properly |
9 |
|
10 |
Nessus must be made aware of a new version of its core components having |
11 |
been installed. Do it the same way as upstream distro packages, i.e. use |
12 |
the undocumented nessuscli command 'install'. |
13 |
|
14 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
15 |
|
16 |
...us-agent-bin-8.0.0.ebuild => nessus-agent-bin-8.0.0-r1.ebuild} | 8 ++++++++ |
17 |
1 file changed, 8 insertions(+) |
18 |
|
19 |
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 |
20 |
similarity index 79% |
21 |
rename from net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0.ebuild |
22 |
rename to net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0-r1.ebuild |
23 |
index d53ad12d43a..bcc8308edd0 100644 |
24 |
--- a/net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0.ebuild |
25 |
+++ b/net-analyzer/nessus-agent-bin/nessus-agent-bin-8.0.0-r1.ebuild |
26 |
@@ -50,6 +50,12 @@ src_install() { |
27 |
} |
28 |
|
29 |
pkg_postinst() { |
30 |
+ # Actually update Nessus core components. According to upstream packages, |
31 |
+ # harmless to invoke on fresh installations too - and it may make life easier |
32 |
+ # for people who had restored Nessus state from backups, had it lying around |
33 |
+ # from older installations and so on. |
34 |
+ "${EROOT}"/opt/nessus_agent/sbin/nessuscli install "${EROOT}"/opt/nessus_agent/var/nessus/plugins-core.tar.gz |
35 |
+ |
36 |
if [[ -z "${REPLACING_VERSIONS}" ]]; then |
37 |
elog "In order to link the agent to Tenable.io or an instance of Nessus Manager," |
38 |
elog "obtain an appropriate linking key and run" |
39 |
@@ -57,5 +63,7 @@ pkg_postinst() { |
40 |
elog " /opt/nessus_agent/sbin/nessuscli agent link --key=<key> --host=<host> --port=<port> [optional parameters]" |
41 |
elog "" |
42 |
elog "This can be done before the agent is started." |
43 |
+ else |
44 |
+ elog "Please restart the nessusagent service to complete the update process" |
45 |
fi |
46 |
} |