[projects/rc-scripts] ensure /var/run/netreport dir exists

glen glen at pld-linux.org
Sat May 16 10:03:08 CEST 2015


commit 6a847b46ddcca7148cabf40fa454734944c69b18
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat May 16 11:03:05 2015 +0300

    ensure /var/run/netreport dir exists

 rc.d/rc.sysinit | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 975336f..f7f0eea 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -1024,6 +1024,8 @@ mkdir -m 1777 -p /tmp/.ICE-unix > /dev/null 2>&1
 chown root:root /tmp/.ICE-unix
 is_yes "$SELINUX" && restorecon /tmp/.ICE-unix >/dev/null 2>&1
 
+test -d /var/run/netreport || mkdir -m 770 /var/run/netreport
+
 if ! is_yes "$VSERVER"; then
 	enable_swap
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/6a847b46ddcca7148cabf40fa454734944c69b18



More information about the pld-cvs-commit mailing list