[phpBB] svn: r36 - trunk/phpbb2

jeroen at wolffelaar.nl jeroen at wolffelaar.nl
Thu Feb 5 01:21:02 CET 2004


Author: jeroen
Date: 2004-02-05 01:20:01 +0100 (Thu, 05 Feb 2004)
New Revision: 36

Modified:
   trunk/phpbb2/config
   trunk/phpbb2/postinst
Log:
Proper db_created detection

Modified: trunk/phpbb2/config
===================================================================
--- trunk/phpbb2/config	2004-02-05 00:15:34 UTC (rev 35)
+++ trunk/phpbb2/config	2004-02-05 00:20:01 UTC (rev 36)
@@ -136,7 +136,7 @@
 #			continue
 #		fi
 		db_get phpbb2/db_created
-		if [ "$RET" = "Yes" ]; then
+		if [ "$RET" = "true" ]; then
 			STATE=httpd
 			break
 		fi

Modified: trunk/phpbb2/postinst
===================================================================
--- trunk/phpbb2/postinst	2004-02-05 00:15:34 UTC (rev 35)
+++ trunk/phpbb2/postinst	2004-02-05 00:20:01 UTC (rev 36)
@@ -24,7 +24,8 @@
 	# walk though supported apache's, and warn if they are configured but
 	# shouldn't anymore
 
-	if [ "$dbsetup" = Create ]; then
+	db_get phpbb2/db_created
+	if [ "$dbsetup" = Create ] && [ "$RET" != true ]; then
 		if [ "$dbms" = mysql ]; then
 			dbadmin=root
 			dbadmpass="$dbrootpass"





More information about the phpBB-l mailing list