net-analyzer/gvmd: only show update instructions on update

Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Florian Schmaus 2025-09-13 17:00:32 +02:00
parent 0f903b7947
commit ab0c86057b
No known key found for this signature in database
GPG Key ID: 2239A7E8F5852052

View File

@ -129,10 +129,12 @@ src_install() {
}
pkg_postinst() {
elog "If you are upgrading from a previous version, you need to update the database version."
elog "Please, create the running directory and give write permission to the database user"
elog "then run gvmd as the gvm user with --migrate option:"
elog "~# mkdir /run/gvmd"
elog "~# setfacl -m u:gvm:rwx /run/gvmd/"
elog "~# sudo -u gvm gvmd --migrate"
if [[ ${REPLACING_VERSIONS} ]]; then
elog "If you are upgrading from a previous version, you need to update the database version."
elog "Please, create the running directory and give write permission to the database user"
elog "then run gvmd as the gvm user with --migrate option:"
elog "~# mkdir /run/gvmd"
elog "~# setfacl -m u:gvm:rwx /run/gvmd/"
elog "~# sudo -u gvm gvmd --migrate"
fi
}