diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-07-12 14:15:20 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-07-12 14:15:20 +0000 |
commit | 079c689ef9b252fd82dbf9b182ec2517c48f8737 (patch) | |
tree | 76d35549f6bb5cf84901953a98be8682c25bb8fb /community-testing/mongodb/mongodb.install | |
parent | ec9bd2e246eb94181a9254dcb2de7ddc191bb8cc (diff) |
Tue Jul 12 14:15:20 UTC 2011
Diffstat (limited to 'community-testing/mongodb/mongodb.install')
-rwxr-xr-x | community-testing/mongodb/mongodb.install | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/community-testing/mongodb/mongodb.install b/community-testing/mongodb/mongodb.install deleted file mode 100755 index 8808eea0d..000000000 --- a/community-testing/mongodb/mongodb.install +++ /dev/null @@ -1,29 +0,0 @@ -# vim: syntax=sh - -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 - - 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() { - userdel mongodb -} |