]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
live_ast: Add astcachedir to generated asterisk.conf.
authorSean Bright <sean@seanbright.com>
Thu, 9 Nov 2023 14:11:33 +0000 (09:11 -0500)
committerAsterisk Development Team <asteriskteam@digium.com>
Fri, 12 Jan 2024 18:32:13 +0000 (18:32 +0000)
`astcachedir` (added in b0842713) was not added to `live_ast` so
continued to point to the system `/var/cache` directory instead of the
one in the live environment.

(cherry picked from commit 1e426b6f1c52069c0ae5daeb03236f4bc1c41371)

contrib/scripts/live_ast

index 0b5151fa511768115853d52466b9ed9d3752a32f..0f81393292769062f68b03520f3e2c30be44aac2 100755 (executable)
@@ -221,7 +221,7 @@ samples)
   sed -r -i \
     -e '/^\[directories\]\(!\)/s/\(!\).*//' \
     -e "/^\[directories\]/a; rem-out any of the following to use Asterisk's defaults:" \
-    -e "/^ast(etc|mod|varlib|data|agi|run|spool|log|db|key)dir\>/s| /| $BASE_DIR/|" \
+    -e "/^ast(cache|etc|mod|varlib|data|agi|run|spool|log|db|key)dir\>/s| /| $BASE_DIR/|" \
     "$AST_CONF"
   if [ "$LIVE_AST_FOR_SYSTEM" != '' ]; then
     sed -r -i \