fix FSCORE-80
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6999 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1d5b3f222b
commit
662144b28c
|
@ -376,6 +376,20 @@ SWITCH_DECLARE(void) switch_core_set_globals(void)
|
|||
SWITCH_FPROT_UREAD | SWITCH_FPROT_UWRITE | SWITCH_FPROT_UEXECUTE | SWITCH_FPROT_GREAD | SWITCH_FPROT_GEXECUTE,
|
||||
runtime.memory_pool);
|
||||
switch_safe_free(dir_path);
|
||||
|
||||
|
||||
switch_dir_make_recursive(SWITCH_GLOBAL_dirs.base_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
|
||||
switch_dir_make_recursive(SWITCH_GLOBAL_dirs.mod_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
|
||||
switch_dir_make_recursive(SWITCH_GLOBAL_dirs.conf_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
|
||||
switch_dir_make_recursive(SWITCH_GLOBAL_dirs.log_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
|
||||
switch_dir_make_recursive(SWITCH_GLOBAL_dirs.db_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
|
||||
switch_dir_make_recursive(SWITCH_GLOBAL_dirs.script_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
|
||||
switch_dir_make_recursive(SWITCH_GLOBAL_dirs.htdocs_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
|
||||
switch_dir_make_recursive(SWITCH_GLOBAL_dirs.grammar_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
|
||||
switch_dir_make_recursive(SWITCH_GLOBAL_dirs.temp_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -358,6 +358,7 @@ void switch_core_sqldb_start(switch_memory_pool_t *pool)
|
|||
/* Activate SQL database */
|
||||
if ((sql_manager.db = switch_core_db_handle()) == 0) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Opening DB!\n");
|
||||
switch_clear_flag((&runtime), SCF_USE_SQL);
|
||||
} else {
|
||||
char create_channels_sql[] =
|
||||
"CREATE TABLE channels (\n"
|
||||
|
|
Loading…
Reference in New Issue