summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2022-03-23 09:24:40 +0100
committerFlorian Schmaus <flow@gentoo.org>2022-03-23 09:33:50 +0100
commit824625c1fe3ca5b76a5bb1c56c447a3558d7d811 (patch)
tree1042fb4654d3853a13a34d3615882cae8913533c /net-im
parentnet-im/ejabberd: drop 20.04, 21.04, 21.04-r2 (diff)
downloadgentoo-824625c1fe3ca5b76a5bb1c56c447a3558d7d811.tar.gz
gentoo-824625c1fe3ca5b76a5bb1c56c447a3558d7d811.tar.bz2
gentoo-824625c1fe3ca5b76a5bb1c56c447a3558d7d811.zip
net-im/ejabberd: improve migration instructions
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r--net-im/ejabberd/ejabberd-21.12.ebuild13
1 files 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
}