commit: ab0c86057b45b33b1e2fbf2e27143a8574170797
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 13 15:00:32 2025 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sat Sep 13 15:03:03 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab0c8605
net-analyzer/gvmd: only show update instructions on update
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
net-analyzer/gvmd/gvmd-26.3.0.ebuild | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/net-analyzer/gvmd/gvmd-26.3.0.ebuild
b/net-analyzer/gvmd/gvmd-26.3.0.ebuild
index e06ec2bed5c9..280bb6ae1e4d 100644
--- a/net-analyzer/gvmd/gvmd-26.3.0.ebuild
+++ b/net-analyzer/gvmd/gvmd-26.3.0.ebuild
@@ -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
}