$OpenBSD: patch-admin_install_php,v 1.3 2012/06/13 00:41:39 sthen Exp $
--- admin/install.php.orig	Sat Jun  9 06:29:02 2012
+++ admin/install.php	Sat Jun  9 14:13:47 2012
@@ -823,6 +823,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', '' ) ) ||
