Skip to content

Commit 7ff316c

Browse files
Fix example cnf and makefile for log_dir var
1 parent 99e7784 commit 7ff316c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

conf/mongodb-consistent-backup.example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ production:
44
#username:
55
#password:
66
#authdb: admin
7-
log: /tmp/mongodb_consistent_backup.log
7+
log_dir: /tmp
88
backup:
99
method: mongodump
1010
name: default

scripts/mongodb_consistent_backup.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ EOF
5353

5454
# Change /etc config file to use rpm paths for logs and data
5555
sed -i \
56-
-e s@/tmp/mongodb_consistent_backup.log@%{log_dir}/mongodb-consistent-backup.log@g \
57-
-e s@/opt/mongodb/backup@%{data_dir}@g \
56+
-e s@log_dir:\ /tmp@log_dir:\ %{log_dir}@g \
57+
-e s@location:\ /opt/mongodb/backup@location:\ %{data_dir}@g \
5858
%{buildroot}%{_sysconfdir}/%{bin_name}.yml
5959

6060

0 commit comments

Comments
 (0)