diff --git a/public/js/index.js b/public/js/index.js index 590fafa8d8..61b774b1fe 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -209,6 +209,12 @@ function initInstall() { return; } + if ($('#db_host').val()=="") { + $('#db_host').val("127.0.0.1:3306"); + $('#db_user').val("gitea"); + $('#db_name').val("gitea"); + } + // Database type change detection. $("#db_type").change(function () { var sqliteDefault = 'data/gitea.db';