[Forensics-changes] [rkhunter] 08/08: Work-around missing /etc/rkhunter.conf in postinst (closes: #770242)
Francois Marier
francois at moszumanska.debian.org
Mon Dec 8 04:24:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
francois pushed a commit to branch master
in repository rkhunter.
commit f91d229ad51b19d52b979720f8a1edf1e2aea385
Author: Francois Marier <francois at debian.org>
Date: Sat Nov 29 00:27:20 2014 +1300
Work-around missing /etc/rkhunter.conf in postinst (closes: #770242)
---
debian/changelog | 7 +++++++
debian/postinst | 5 ++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 608280a..882b2a4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+rkhunter (1.4.2-0.4) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Work-around missing /etc/rkhunter.conf in postinst (closes: #770242)
+
+ -- Francois Marier <francois at debian.org> Sat, 29 Nov 2014 00:26:17 +1300
+
rkhunter (1.4.2-0.3) unstable; urgency=medium
* Non-maintainer upload.
diff --git a/debian/postinst b/debian/postinst
old mode 100644
new mode 100755
index 7179cff..d93fdd6
--- a/debian/postinst
+++ b/debian/postinst
@@ -35,7 +35,10 @@ case "$1" in
# Copy the passwd/group files to the TMP directory
# to avoid warnings when rkhunter is first run.
# This is normally done by the installer script.
- rkhtmpdir=$(grep '^TMPDIR' /etc/rkhunter.conf | sed 's/TMPDIR=//')
+ rkhtmpdir=/var/lib/rkhunter/tmp
+ if [ -e "/etc/rkhunter.conf" ]; then
+ rkhtmpdir=$(grep '^TMPDIR' /etc/rkhunter.conf | sed 's/TMPDIR=//')
+ fi
[ -f $rkhtmpdir/passwd ] || cp -p /etc/passwd $rkhtmpdir >/dev/null 2>&1
[ -f $rkhtmpdir/group ] || cp -p /etc/group $rkhtmpdir >/dev/null 2>&1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/rkhunter.git
More information about the forensics-changes
mailing list