diff options
author | root <root@rshg047.dnsready.net> | 2011-07-06 23:10:44 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-07-06 23:10:44 +0000 |
commit | b215b5e985b9310dff8d992510f12a87141fe7cb (patch) | |
tree | bc81c9c0c02ab9a4d6ee15e553850141b8d46f94 /community/mongodb/mongodb.install | |
parent | 9d2caacbc33de06407311a5da87e5d22e0266435 (diff) |
Wed Jul 6 23:10:44 UTC 2011
Diffstat (limited to 'community/mongodb/mongodb.install')
-rwxr-xr-x | community/mongodb/mongodb.install | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/community/mongodb/mongodb.install b/community/mongodb/mongodb.install index 9e13a4d14..8808eea0d 100755 --- a/community/mongodb/mongodb.install +++ b/community/mongodb/mongodb.install @@ -1,26 +1,27 @@ # vim: syntax=sh -show_msg(){ - if [ "$(arch)" != "x86_64" ] - then - cat <<END -==> Warning: the 32 bit version of MongoDB is limited to about 2GB of data. -==> See http://blog.mongodb.org/post/137788967/32-bit-limitations -END - fi -} - post_install() { useradd -r -g daemon -d /var/lib/mongodb -s /bin/bash mongodb chown -R mongodb:daemon /var/lib/mongodb chown -R mongodb:daemon /var/log/mongodb - show_msg + if [ "$(arch)" != "x86_64" ] + then + echo '==> Warning: the 32 bit version of MongoDB is limited to about 2GB of data.' + echo '==> See http://blog.mongodb.org/post/137788967/32-bit-limitations' + fi } post_upgrade() { chown -R mongodb:daemon /var/lib/mongodb chown -R mongodb:daemon /var/log/mongodb + + # have to fix my fudge up in 1.8.2-2 and 1.8.2-3 + # added july 5th, 2011 + usermod -s /bin/bash mongodb >& /dev/null + echo 'The dbpath has changed from /var/state/mongodb to /var/lib/mongodb' + echo 'Make sure you move your data files to the new dbpath before you start/restart mongodb' + echo 'The logpath has changed from /var/log/mongod to /var/log/mongodb/mongod.log' } pre_remove() { |