commit: 4dd259e91aa64316e138c4cd1c5bd38823bfc374 Author: Marek Szuba <marecki <AT> gentoo <DOT> org> AuthorDate: Fri Aug 28 12:17:36 2020 +0000 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> CommitDate: Fri Aug 28 12:17:36 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dd259e9
net-analyzer/nessus-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'. This is safe to do while nessusd-bin is running but it WILL be necessary to restart the service so that the dashboard is updated as well. In fact, Nessus UI will complain about the version discrepancy between the core and the dashboard until the service has been restarted. Closes: https://bugs.gentoo.org/739178 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> ...nessus-bin-8.11.1.ebuild => nessus-bin-8.11.1-r1.ebuild} | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/net-analyzer/nessus-bin/nessus-bin-8.11.1.ebuild b/net-analyzer/nessus-bin/nessus-bin-8.11.1-r1.ebuild similarity index 77% rename from net-analyzer/nessus-bin/nessus-bin-8.11.1.ebuild rename to net-analyzer/nessus-bin/nessus-bin-8.11.1-r1.ebuild index 444f5c56b2c..1e569f0e0f1 100644 --- a/net-analyzer/nessus-bin/nessus-bin-8.11.1.ebuild +++ b/net-analyzer/nessus-bin/nessus-bin-8.11.1-r1.ebuild @@ -50,15 +50,16 @@ 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/sbin/nessuscli install "${EROOT}"/opt/nessus/var/nessus/plugins-core.tar.gz + if [[ -z "${REPLACING_VERSIONS}" ]]; then elog "To get started launch the nessusd-bin service, then point your Web browser to" elog " https://<yourhost>:8834/" else - elog "You may want to restart the nessusd-bin service to use" - elog "the new version of Nessus." - elog "You also need to update your plugins. When ready, it's done like this:" - elog "/etc/init.d/nessusd-bin stop" - elog "/opt/nessus/sbin/nessuscli update --all" - elog "/etc/init.d/nessusd-bin start" + elog "Please restart the nessusd-bin service to use the new version of Nessus" fi }
