Date: Sat, 3 Sep 2011 16:00:20 GMT From: =?ISO-2022-JP?B?GyRCMCRJdDkoTEAbKEI=?= <hiroaki0404@gmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/160225: [periodic] /etc/periodic/weekly/310.locate doesn't see /etc/locate.rc. Message-ID: <201109031600.p83G0KAh001852@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/160225; it has been noted by GNATS.
From: =?ISO-2022-JP?B?GyRCMCRJdDkoTEAbKEI=?= <hiroaki0404@gmail.com>
To: bug-followup@FreeBSD.org, hiroaki0404@gmail.com
Cc:
Subject: Re: conf/160225: [periodic] /etc/periodic/weekly/310.locate
doesn't see /etc/locate.rc.
Date: Sun, 4 Sep 2011 00:32:19 +0900
Hello, all.
Followings works fine for me.
Regards,
--- /usr/src/etc/periodic/weekly/310.locate 2011-02-26
19:30:50.000000000 +0900
+++ /etc/periodic/weekly/310.locate 2011-09-03 16:37:29.000000000 +0900
@@ -16,7 +16,12 @@
echo ""
echo "Rebuilding locate database:"
- locdb=/var/db/locate.database
+ . /etc/locate.rc
+ if [ 'x' = "x$FCODES" ]; then
+ locdb=/var/db/locate.database
+ else
+ locdb="$FCODES"
+ fi
touch $locdb && rc=0 || rc=3
chown nobody $locdb || rc=3
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109031600.p83G0KAh001852>
