Add ASTSBINDIR to the list of configurable paths

This patch also makes astdb2sqlite3 and astcanary use the configured
directory instead of relying on $PATH.

(closes issue ASTERISK-18959)
Review: https://reviewboard.asterisk.org/r/1613/
........

Merged revisions 347344 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@347345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Terry Wilson
2011-12-07 20:15:29 +00:00
parent 7e634c21f8
commit 980ab2d018
6 changed files with 16 additions and 11 deletions

View File

@@ -156,7 +156,7 @@ static int convert_bdb_to_sqlite3(void)
char *cmd;
int res;
ast_asprintf(&cmd, "astdb2sqlite3 '%s'\n", ast_config_AST_DB);
ast_asprintf(&cmd, "%s/astdb2sqlite3 '%s'\n", ast_config_AST_SBIN_DIR, ast_config_AST_DB);
res = ast_safe_system(cmd);
ast_free(cmd);