From 25a6d6e5b706f489324a52ae47c60b57c257d553 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Tue, 16 Aug 2016 21:10:05 +0300 Subject: [PATCH] cron/mlocate updated --- cron.daily/mlocate | 2 +- cron.weekly/mlocate | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cron.daily/mlocate b/cron.daily/mlocate index 51cb504..cf42104 100644 --- a/cron.daily/mlocate +++ b/cron.daily/mlocate @@ -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 diff --git a/cron.weekly/mlocate b/cron.weekly/mlocate index 51cb504..cf42104 100755 --- a/cron.weekly/mlocate +++ b/cron.weekly/mlocate @@ -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