summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorErnie Hershey <ernie.hershey@10gen.com>2013-09-17 16:04:50 -0400
committerErnie Hershey <ernie.hershey@10gen.com>2013-09-25 21:41:28 -0400
commite01dfe96c73e89fb5e20f55faff4fcbfb54de1b5 (patch)
tree48817d5d62c3bd3199683125449a0b26eaff69b1 /rpm
parentd32637303b9dedd812d8bc9c10b173755e3602eb (diff)
downloadmongo-e01dfe96c73e89fb5e20f55faff4fcbfb54de1b5.tar.gz
SERVER-3579 Change file paths to consistent format
Diffstat (limited to 'rpm')
-rw-r--r--rpm/mongod.conf4
-rw-r--r--rpm/mongodb-org-unstable.spec14
2 files changed, 9 insertions, 9 deletions
diff --git a/rpm/mongod.conf b/rpm/mongod.conf
index 4f186abb6f8..94fe0913564 100644
--- a/rpm/mongod.conf
+++ b/rpm/mongod.conf
@@ -1,7 +1,7 @@
-# mongo.conf
+# mongod.conf
#where to log
-logpath=/var/log/mongo/mongod.log
+logpath=/var/log/mongodb/mongod.log
logappend=true
diff --git a/rpm/mongodb-org-unstable.spec b/rpm/mongodb-org-unstable.spec
index 5ecf8eb3590..03e1b8238f5 100644
--- a/rpm/mongodb-org-unstable.spec
+++ b/rpm/mongodb-org-unstable.spec
@@ -82,9 +82,9 @@ mkdir -p $RPM_BUILD_ROOT/etc
cp -v rpm/mongod.conf $RPM_BUILD_ROOT/etc/mongod.conf
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
cp -v rpm/mongod.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/mongod
-mkdir -p $RPM_BUILD_ROOT/var/lib/mongo
-mkdir -p $RPM_BUILD_ROOT/var/log/mongo
-touch $RPM_BUILD_ROOT/var/log/mongo/mongod.log
+mkdir -p $RPM_BUILD_ROOT/var/lib/mongodb
+mkdir -p $RPM_BUILD_ROOT/var/log/mongodb
+touch $RPM_BUILD_ROOT/var/log/mongodb/mongod.log
%clean
rm -rf $RPM_BUILD_ROOT
@@ -94,7 +94,7 @@ if ! /usr/bin/id -g mongod &>/dev/null; then
/usr/sbin/groupadd -r mongod
fi
if ! /usr/bin/id mongod &>/dev/null; then
- /usr/sbin/useradd -M -r -g mongod -d /var/lib/mongo -s /bin/false -c mongod mongod > /dev/null 2>&1
+ /usr/sbin/useradd -M -r -g mongod -d /var/lib/mongodb -s /bin/false -c mongod mongod > /dev/null 2>&1
fi
%post server
@@ -124,9 +124,9 @@ fi
%{_mandir}/man1/mongod.1*
/etc/rc.d/init.d/mongod
/etc/sysconfig/mongod
-%attr(0755,mongod,mongod) %dir /var/lib/mongo
-%attr(0755,mongod,mongod) %dir /var/log/mongo
-%attr(0640,mongod,mongod) %config(noreplace) %verify(not md5 size mtime) /var/log/mongo/mongod.log
+%attr(0755,mongod,mongod) %dir /var/lib/mongodb
+%attr(0755,mongod,mongod) %dir /var/log/mongodb
+%attr(0640,mongod,mongod) %config(noreplace) %verify(not md5 size mtime) /var/log/mongodb/mongod.log
%files shell
%defattr(-,root,root,-)