]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
On astdb conversion, also warn about permissions requirements
authorTerry Wilson <twilson@digium.com>
Mon, 10 Oct 2011 22:55:39 +0000 (22:55 +0000)
committerTerry Wilson <twilson@digium.com>
Mon, 10 Oct 2011 22:55:39 +0000 (22:55 +0000)
The user running Asterisk must have permission to the directory
the Asterisk database resides in since SQLite 3 needs to be able
to create a journal file.

(closes issue ASTERISK-18174)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@340222 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/db.c

index 6a48b331fa291564553f24e99770384fb741e56b..67a8ccdb72df64bbb95b222e7fbad3ac802be76c 100644 (file)
--- a/main/db.c
+++ b/main/db.c
@@ -204,6 +204,9 @@ static int db_open(void)
                        ast_log(LOG_ERROR, "*** old astdb, please delete '%s'\n", dbname);
                        ast_log(LOG_ERROR, "*** and re-run 'make menuselect' and select astdb2sqlite3\n");
                        ast_log(LOG_ERROR, "*** in the Utilities section, then 'make && make install'.\n");
+                       ast_log(LOG_ERROR, "*** It is also imperative that the user under which\n");
+                       ast_log(LOG_ERROR, "*** Asterisk runs have write permission to the directory\n");
+                       ast_log(LOG_ERROR, "*** where the database resides.\n");
                        sleep(5);
                } else {
                        ast_log(LOG_NOTICE, "Database conversion succeeded!\n");