commit:     f30f1d471181f5b487dda53ac4d112cf56627060
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 30 08:33:46 2021 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Fri Jul 30 08:34:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f30f1d47

app-admin/logrotate: call tmpfiles_process

instead of printing message

on openrc systems that directory already created by bootmisc

Bug: https://bugs.gentoo.org/357275
Bug: https://bugs.gentoo.org/803458
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 app-admin/logrotate/logrotate-3.18.1.ebuild | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/app-admin/logrotate/logrotate-3.18.1.ebuild 
b/app-admin/logrotate/logrotate-3.18.1.ebuild
index 254aa29f735..b422c0e89da 100644
--- a/app-admin/logrotate/logrotate-3.18.1.ebuild
+++ b/app-admin/logrotate/logrotate-3.18.1.ebuild
@@ -83,10 +83,7 @@ pkg_postinst() {
 
        move_old_state_file
 
-       elog "If you are running systemd you might need to run:"
-       elog "systemd-tmpfiles --create /usr/lib/tmpfiles.d/logrotate.conf"
-       elog "in order to create the new location of the logrotate state file"
-       elog
+       tmpfiles_process ${PN}.conf
 
        if [[ -z ${REPLACING_VERSIONS} ]] ; then
                elog "If you wish to have logrotate e-mail you updates, please"

Reply via email to