commit:     824625c1fe3ca5b76a5bb1c56c447a3558d7d811
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 23 08:24:40 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Mar 23 08:33:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=824625c1

net-im/ejabberd: improve migration instructions

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 net-im/ejabberd/ejabberd-21.12.ebuild | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/net-im/ejabberd/ejabberd-21.12.ebuild 
b/net-im/ejabberd/ejabberd-21.12.ebuild
index c99d52ec5c5f..09f794d0d456 100644
--- a/net-im/ejabberd/ejabberd-21.12.ebuild
+++ b/net-im/ejabberd/ejabberd-21.12.ebuild
@@ -206,6 +206,13 @@ pkg_postinst() {
        # its own user. This increase isolation and hence robustness and
        # security.
        if $migrate_to_ejabberd_user; then
+               ewarn "Newer versions of the ejabberd Gentoo package use 
/etc/ejabberd"
+               ewarn "(just as upstream) and *not* /etc/jabber."
+               ewarn "The files from /etc/jabber will now be copied to 
/etc/ejabberd."
+               ewarn "Also ejabberd's spool directory became /var/lib/ejabberd 
(was /var/spool/jabber)."
+               ewarn "Please check your configuration, and finish the 
migration by stopping ejabberd"
+               ewarn "followed by rsync'ing /var/spool/jabber to 
/var/lib/ejabberd."
+
                local -A dirs_to_migrate=(
                        [/etc/jabber]=/etc/ejabberd
                        [/var/spool/jabber]=/var/lib/ejabberd
@@ -224,11 +231,5 @@ pkg_postinst() {
                                chown --recursive ejabberd:ejabberd 
"${eroot_dst_dir}" || die
                        fi
                done
-
-               ewarn "Newer versions of the ejabberd Gentoo package use 
/etc/ejabberd"
-               ewarn "(just as upstream) and *not* /etc/jabber."
-               ewarn "The files from /etc/jabber where copied to 
/etc/ejabberd."
-               ewarn "Also ejabberd's spool directory became /var/lib/ejabberd 
(was /var/spool/jabber)."
-               ewarn "Please check your configuration."
        fi
 }

Reply via email to