[asterisk-commits] twilson: branch 10 r340222 - /branches/10/main/db.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 10 17:55:42 CDT 2011


Author: twilson
Date: Mon Oct 10 17:55:39 2011
New Revision: 340222

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=340222
Log:
On astdb conversion, also warn about permissions requirements

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.

Modified:
    branches/10/main/db.c

Modified: branches/10/main/db.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/db.c?view=diff&rev=340222&r1=340221&r2=340222
==============================================================================
--- branches/10/main/db.c (original)
+++ branches/10/main/db.c Mon Oct 10 17:55:39 2011
@@ -204,6 +204,9 @@
 			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");




More information about the asterisk-commits mailing list