Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103014974
D47486.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
611 B
Referenced Files
None
Subscribers
None
D47486.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D47486: periodic: set _localbase in periodic scripts when not set in main script
Attached
Detach File
Event Timeline
Log In to Comment