From: Sean Bright Date: Thu, 9 Nov 2023 14:11:33 +0000 (-0500) Subject: live_ast: Add astcachedir to generated asterisk.conf. X-Git-Tag: 21.1.0-rc1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6142e3812562a0d1599411ab27d4ac2a01b5449b;p=thirdparty%2Fasterisk.git live_ast: Add astcachedir to generated asterisk.conf. `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) --- diff --git a/contrib/scripts/live_ast b/contrib/scripts/live_ast index 0b5151fa51..0f81393292 100755 --- a/contrib/scripts/live_ast +++ b/contrib/scripts/live_ast @@ -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 \