-Déplacé named de /home vers /srv
[hvlinux.git] / stage1 / bootscripts / cleanfs
index 4be2a54..48c2fdc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # cleanfs
 # Clean file system
@@ -20,6 +20,12 @@ clean_files()
 
     cd /var/run &&
     find . ! -type d ! -name utmp ! -newer /proc -exec rm -f {} \; || failed=1
+
+    if [ -d /srv/named ]; then
+        cd /srv/named/var/run &&
+        find . ! -type d ! -name utmp ! -newer /proc -exec rm -f {} \; || failed=1
+    fi
+
     > /var/run/utmp
     if grep -q '^utmp:' /etc/group ; then
        chmod 664 /var/run/utmp