@@ -429,10 +429,10 @@ func SubmitInstall(ctx *context.Context) {
429429 } else {
430430 cfg .Section ("mailer" ).Key ("ENABLED" ).SetValue ("false" )
431431 }
432- cfg .Section ("service" ).Key ("REGISTER_EMAIL_CONFIRM" ).SetValue (fmt . Sprint (form .RegisterConfirm ))
433- cfg .Section ("service" ).Key ("ENABLE_NOTIFY_MAIL" ).SetValue (fmt . Sprint (form .MailNotify ))
432+ cfg .Section ("service" ).Key ("REGISTER_EMAIL_CONFIRM" ).SetValue (strconv . FormatBool (form .RegisterConfirm ))
433+ cfg .Section ("service" ).Key ("ENABLE_NOTIFY_MAIL" ).SetValue (strconv . FormatBool (form .MailNotify ))
434434
435- cfg .Section ("server" ).Key ("OFFLINE_MODE" ).SetValue (fmt . Sprint (form .OfflineMode ))
435+ cfg .Section ("server" ).Key ("OFFLINE_MODE" ).SetValue (strconv . FormatBool (form .OfflineMode ))
436436 if err := system_model .SetSettings (ctx , map [string ]string {
437437 setting .Config ().Picture .DisableGravatar .DynKey (): strconv .FormatBool (form .DisableGravatar ),
438438 setting .Config ().Picture .EnableFederatedAvatar .DynKey (): strconv .FormatBool (form .EnableFederatedAvatar ),
@@ -441,17 +441,17 @@ func SubmitInstall(ctx *context.Context) {
441441 return
442442 }
443443
444- cfg .Section ("openid" ).Key ("ENABLE_OPENID_SIGNIN" ).SetValue (fmt . Sprint (form .EnableOpenIDSignIn ))
445- cfg .Section ("openid" ).Key ("ENABLE_OPENID_SIGNUP" ).SetValue (fmt . Sprint (form .EnableOpenIDSignUp ))
446- cfg .Section ("service" ).Key ("DISABLE_REGISTRATION" ).SetValue (fmt . Sprint (form .DisableRegistration ))
447- cfg .Section ("service" ).Key ("ALLOW_ONLY_EXTERNAL_REGISTRATION" ).SetValue (fmt . Sprint (form .AllowOnlyExternalRegistration ))
448- cfg .Section ("service" ).Key ("ENABLE_CAPTCHA" ).SetValue (fmt . Sprint (form .EnableCaptcha ))
449- cfg .Section ("service" ).Key ("REQUIRE_SIGNIN_VIEW" ).SetValue (fmt . Sprint (form .RequireSignInView ))
450- cfg .Section ("service" ).Key ("DEFAULT_KEEP_EMAIL_PRIVATE" ).SetValue (fmt . Sprint (form .DefaultKeepEmailPrivate ))
451- cfg .Section ("service" ).Key ("DEFAULT_ALLOW_CREATE_ORGANIZATION" ).SetValue (fmt . Sprint (form .DefaultAllowCreateOrganization ))
452- cfg .Section ("service" ).Key ("DEFAULT_ENABLE_TIMETRACKING" ).SetValue (fmt . Sprint (form .DefaultEnableTimetracking ))
444+ cfg .Section ("openid" ).Key ("ENABLE_OPENID_SIGNIN" ).SetValue (strconv . FormatBool (form .EnableOpenIDSignIn ))
445+ cfg .Section ("openid" ).Key ("ENABLE_OPENID_SIGNUP" ).SetValue (strconv . FormatBool (form .EnableOpenIDSignUp ))
446+ cfg .Section ("service" ).Key ("DISABLE_REGISTRATION" ).SetValue (strconv . FormatBool (form .DisableRegistration ))
447+ cfg .Section ("service" ).Key ("ALLOW_ONLY_EXTERNAL_REGISTRATION" ).SetValue (strconv . FormatBool (form .AllowOnlyExternalRegistration ))
448+ cfg .Section ("service" ).Key ("ENABLE_CAPTCHA" ).SetValue (strconv . FormatBool (form .EnableCaptcha ))
449+ cfg .Section ("service" ).Key ("REQUIRE_SIGNIN_VIEW" ).SetValue (strconv . FormatBool (form .RequireSignInView ))
450+ cfg .Section ("service" ).Key ("DEFAULT_KEEP_EMAIL_PRIVATE" ).SetValue (strconv . FormatBool (form .DefaultKeepEmailPrivate ))
451+ cfg .Section ("service" ).Key ("DEFAULT_ALLOW_CREATE_ORGANIZATION" ).SetValue (strconv . FormatBool (form .DefaultAllowCreateOrganization ))
452+ cfg .Section ("service" ).Key ("DEFAULT_ENABLE_TIMETRACKING" ).SetValue (strconv . FormatBool (form .DefaultEnableTimetracking ))
453453 cfg .Section ("service" ).Key ("NO_REPLY_ADDRESS" ).SetValue (form .NoReplyAddress )
454- cfg .Section ("cron.update_checker" ).Key ("ENABLED" ).SetValue (fmt . Sprint (form .EnableUpdateChecker ))
454+ cfg .Section ("cron.update_checker" ).Key ("ENABLED" ).SetValue (strconv . FormatBool (form .EnableUpdateChecker ))
455455
456456 cfg .Section ("session" ).Key ("PROVIDER" ).SetValue ("file" )
457457
0 commit comments