Skip to content

Commit 19570f2

Browse files
vcaesarlunny
authored andcommitted
Fix install.tmpl input default value (#611)
* Fix install.tmpl input default value * Update db_user to gitea * Add when INSTALL_LOCK = false
1 parent 973282d commit 19570f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

public/js/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ function initInstall() {
209209
return;
210210
}
211211

212+
if ($('#db_host').val()=="") {
213+
$('#db_host').val("127.0.0.1:3306");
214+
$('#db_user').val("gitea");
215+
$('#db_name').val("gitea");
216+
}
217+
212218
// Database type change detection.
213219
$("#db_type").change(function () {
214220
var sqliteDefault = 'data/gitea.db';

0 commit comments

Comments
 (0)