diff options
Diffstat (limited to 'dev-db/mongodb/mongodb-2.6.12.ebuild')
| -rw-r--r-- | dev-db/mongodb/mongodb-2.6.12.ebuild | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/dev-db/mongodb/mongodb-2.6.12.ebuild b/dev-db/mongodb/mongodb-2.6.12.ebuild index b206aeccb0f6..3f63202fa457 100644 --- a/dev-db/mongodb/mongodb-2.6.12.ebuild +++ b/dev-db/mongodb/mongodb-2.6.12.ebuild @@ -156,25 +156,29 @@ src_test() { } pkg_postinst() { - if [[ ${REPLACING_VERSIONS} < 2.6 ]]; then - ewarn "!! IMPORTANT !!" - ewarn " " - ewarn "${PN} configuration files have changed !" - ewarn " " - ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" - ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" - ewarn " " - ewarn "Make sure you also follow the upgrading process :" - ewarn " http://docs.mongodb.org/master/release-notes/2.6-upgrade/" - ewarn " " - if use mms-agent; then - ewarn "MMS Agent configuration file has been moved to :" - ewarn " /etc/mms-agent.conf" + local v + for v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 2.6 ${v}; then + ewarn "!! IMPORTANT !!" + ewarn " " + ewarn "${PN} configuration files have changed !" + ewarn " " + ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" + ewarn " " + ewarn "Make sure you also follow the upgrading process :" + ewarn " http://docs.mongodb.org/master/release-notes/2.6-upgrade/" + ewarn " " + if use mms-agent; then + ewarn "MMS Agent configuration file has been moved to :" + ewarn " /etc/mms-agent.conf" + fi + break + else + if use mms-agent; then + elog "Edit your MMS Agent configuration file :" + elog " /etc/mms-agent.conf" + fi fi - else - if use mms-agent; then - elog "Edit your MMS Agent configuration file :" - elog " /etc/mms-agent.conf" - fi - fi + done } |
