$OpenBSD: patch-admin_install_php,v 1.2 2008/11/16 10:41:37 mbalmer Exp $
--- admin/install.php.orig	Sat Feb  2 03:10:41 2008
+++ admin/install.php	Sun Nov 16 11:30:23 2008
@@ -808,6 +808,15 @@ if ( 5 == $t_install_state ) {
 				print_test_result( BAD, false, 'cannot write ' . $t_config_filename );
 			}
 		} else {
+			# already exists, see if it is the placeholder file
+			if ( ( config_get( 'placeholder', '' ) == "yes" ) ) {
+				if ( $fd = @fopen( $t_config_filename, 'w' ) ) {
+					fwrite( $fd, $t_config );
+					fclose( $fd );
+					print_test_result( GOOD );
+					$t_write_failed = false;
+				}
+			} else
 			# already exists, see if the information is the same
 			if ( ( $f_hostname != config_get( 'hostname', '' ) ) ||
 					( $f_db_type != config_get( 'db_type', '' ) ) ||