[logcheck] 1.3.14-5: really create home dir and lock-dir for logcheck
Matthias Runge
mrunge at fedoraproject.org
Tue Jan 3 09:36:54 UTC 2012
commit b0f7989a6793321c2440ccc3dae57d88ea7f08d3
Author: Matthias Runge <mrunge at matthias-runge.de>
Date: Tue Jan 3 10:25:11 2012 +0100
1.3.14-5: really create home dir and lock-dir for logcheck
logcheck.spec | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/logcheck.spec b/logcheck.spec
index cdd6ce5..e66730c 100644
--- a/logcheck.spec
+++ b/logcheck.spec
@@ -1,6 +1,6 @@
Name: logcheck
Version: 1.3.14
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Analyzes log files and sends noticeable events as email
License: GPLv2
@@ -81,7 +81,9 @@ rm -rf %{buildroot}
getent group logcheck >/dev/null || groupadd -r logcheck
getent passwd logcheck >/dev/null || \
useradd -r -g logcheck -G adm -d /var/lib/logcheck -s /sbin/nologin \
- -c "Logcheck user" logcheck
+ -c "Logcheck user" logcheck && \
+ mkdir /var/lock/logcheck && chown logcheck:logcheck /var/lock/logcheck && \
+ mkdir /var/lib/logcheck && chown logcheck:logcheck /var/lib/logcheck && \
exit 0
%files
@@ -113,6 +115,9 @@ exit 0
%changelog
+* Mon Jan 02 2012 Matthias Runge <mrunge at matthias-runge.de> 1.3.14-5
+- create directories /var/lock/logcheck and home-dir
+
* Sun Nov 20 2011 Matthias Runge <mrunge at matthias-runge.de> 1.3.14-4
- correct names of ignore-files
- ignore new logins
More information about the scm-commits
mailing list