[Pkg-voip-commits] r3379 - freepbx/trunk/debian/sqlite3

Diego Iastrubni elcuco-guest at alioth.debian.org
Wed Apr 11 14:36:49 UTC 2007


Author: elcuco-guest
Date: 2007-04-11 14:36:49 +0000 (Wed, 11 Apr 2007)
New Revision: 3379

Modified:
   freepbx/trunk/debian/sqlite3/remove-sql
Log:
fix the remove-sql script of sqlite3 to test for "sqlite3" and not "sqlite".

also, when amportal.conf is missing, ask the user to reconfigure the package freepbx-common
which will take care of this (instead of that mambo-jambo i wrote before).


Modified: freepbx/trunk/debian/sqlite3/remove-sql
===================================================================
--- freepbx/trunk/debian/sqlite3/remove-sql	2007-04-10 13:02:14 UTC (rev 3378)
+++ freepbx/trunk/debian/sqlite3/remove-sql	2007-04-11 14:36:49 UTC (rev 3379)
@@ -26,16 +26,16 @@
 DEF_ADMIN_PASSWD="admin"
 
 if [ ! -f /etc/amportal.conf ]; then
-        echo "amportal configuration not found, please install amportal.conf"
-        echo "  cp /usr/share/freepbx-common/amportal.conf /etc/amportal.conf"
-        echo "Modify it to your needs and run this script again."
+        echo "amportal.conf configuration not found."
+	echo "This means that the package freepbx-common is not configured"
+	echo "To finish the configuration, please run \"dpkg-reconfigure freepbx-common\" "
         exit 1
 fi
 
 . /etc/amportal.conf
 
-if [ "$AMPDBENGINE" != "sqlite" ]; then
-        echo "FreePBX is not configured to work with SQLite"
+if [ "$AMPDBENGINE" != "sqlite3" ]; then
+        echo "FreePBX is not configured to work with SQLite3"
 	echo "Ignoring..."
 	exit
 fi




More information about the Pkg-voip-commits mailing list