summaryrefslogtreecommitdiff
path: root/community/mongodb/mongodb.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/mongodb/mongodb.install')
-rwxr-xr-xcommunity/mongodb/mongodb.install19
1 files changed, 8 insertions, 11 deletions
diff --git a/community/mongodb/mongodb.install b/community/mongodb/mongodb.install
index 152f36515..9e13a4d14 100755
--- a/community/mongodb/mongodb.install
+++ b/community/mongodb/mongodb.install
@@ -4,28 +4,25 @@ 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 #
-###########################################################################
+==> 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/state/mongodb -s /bin/false mongodb
- chown -R mongodb:daemon /var/state/mongodb
+ 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
}
post_upgrade() {
- chown -R mongodb:daemon /var/state/mongodb
-
- show_msg
+ chown -R mongodb:daemon /var/lib/mongodb
+ chown -R mongodb:daemon /var/log/mongodb
}
pre_remove() {
- /etc/rc.d/mongodb stop
- userdel mongodb
+ userdel mongodb
}