mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/mongodb to 3.2.8-2
This commit is contained in:
parent
4b702054bd
commit
876800187b
2 changed files with 6 additions and 18 deletions
|
@ -17,7 +17,7 @@ buildarch=28
|
|||
|
||||
pkgname=mongodb
|
||||
pkgver=3.2.8
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='A high-performance, open source, schema-free document-oriented database'
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://www.mongodb.org'
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
# 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
|
||||
post_upgrade $1 ''
|
||||
|
||||
if [ "$(uname -m)" != "x86_64" ]
|
||||
then
|
||||
|
@ -13,20 +11,10 @@ post_install() {
|
|||
}
|
||||
|
||||
post_upgrade() {
|
||||
if ! getent passwd mongodb >/dev/null
|
||||
then
|
||||
useradd -r -g daemon -d /var/lib/mongodb -s /bin/bash mongodb
|
||||
fi
|
||||
chown -R mongodb:daemon /var/lib/mongodb
|
||||
chown -R mongodb:daemon /var/log/mongodb
|
||||
|
||||
if [ "$(vercmp $2 1.8.2-3)" -lt 0 ]
|
||||
then
|
||||
# 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'
|
||||
fi
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
userdel mongodb
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue