Page MenuHomeFreeBSD

D47486.diff
No OneTemporary

D47486.diff

diff --git a/usr.sbin/periodic/periodic.conf b/usr.sbin/periodic/periodic.conf
--- a/usr.sbin/periodic/periodic.conf
+++ b/usr.sbin/periodic/periodic.conf
@@ -15,6 +15,14 @@
#
#
+# Set _localbase in case it has not already been set
+# within the main /usr/sbin/periodic script
+if [ -z "${_localbase}" ]; then
+ _localbase=`/sbin/sysctl -n user.localbase 2> /dev/null`
+ # Set default value of _localbase if not previously set
+ : ${_localbase:="/usr/local"}
+fi
+
# What files override these defaults ?
periodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local ${_localbase}/etc/periodic.conf"

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 8:36 PM (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14561221
Default Alt Text
D47486.diff (611 B)

Event Timeline