mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Introduce astcachedir, to be used for temporary bucket files
As described in the issue, /tmp is not a suitable location for a large amount of cached media files, since most distributions make /tmp a RAM-based tmpfs mount with limited capacity. I opted for a location that can be configured separately, as opposed to using a subdirectory of spooldir, given the different storage profile (transient files vs files that might stay there indefinitely). This commit just makes the cache directory configurable, and changes the default location from /tmp to /var/cache/asterisk. ASTERISK-29143 Change-Id: Ic54e95199405abacd9e509cef5f08fa14c510b5d
This commit is contained in:
@@ -34,6 +34,7 @@ AC_USE_SYSTEM_EXTENSIONS dnl note- does not work on FreeBSD
|
||||
|
||||
# System default paths
|
||||
AC_SUBST([astsbindir], ['${sbindir}'])dnl
|
||||
AC_SUBST([astcachedir], ['${localstatedir}/cache/asterisk'])dnl
|
||||
AC_SUBST([astetcdir], ['${sysconfdir}/asterisk'])dnl
|
||||
AC_SUBST([astheaderdir], ['${includedir}/asterisk'])dnl
|
||||
AC_SUBST([astlibdir], ['${libdir}'])dnl
|
||||
@@ -98,6 +99,7 @@ case "${host_os}" in
|
||||
;;
|
||||
solaris*)
|
||||
if test ${prefix} = 'NONE'; then
|
||||
astcachedir=/var/cache/asterisk
|
||||
astetcdir=/var/etc/asterisk
|
||||
astsbindir=/opt/asterisk/sbin
|
||||
astlibdir=/opt/asterisk/lib
|
||||
|
Reference in New Issue
Block a user