cron/mlocate updated

This commit is contained in:
Kolan Sh 2016-08-16 21:10:05 +03:00
parent 679f1417e3
commit 25a6d6e5b7
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ fi
# check the config file
NODEVS=""
if [ ! -f /etc/updatedb.conf ]; then
NODEVS=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" { print $2 }')
NODEVS=$(awk '$1 == "nodev" && $2 != "rootfs" { print $2 }' /proc/filesystems)
fi
# alter the priority of the updatedb process

View File

@ -28,7 +28,7 @@ fi
# check the config file
NODEVS=""
if [ ! -f /etc/updatedb.conf ]; then
NODEVS=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" { print $2 }')
NODEVS=$(awk '$1 == "nodev" && $2 != "rootfs" { print $2 }' /proc/filesystems)
fi
# alter the priority of the updatedb process