Compare commits

..

2 Commits

Author SHA1 Message Date
Elias Jansson
d5ae7fedef test
All checks were successful
continuous-integration/drone/push Build is passing
2026-01-24 15:59:43 +01:00
Elias Jansson
8d7cf86d4d Test 2026-01-24 15:59:39 +01:00
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -365,3 +365,4 @@ FodyWeavers.xsd
# Setupfil för Aberwyn
infrastructure/setup.json
Aberwyn/Infrastructure/setup.json
/Aberwyn/Data/infrastructure/setup2.json

View File

@@ -74,6 +74,7 @@ namespace Aberwyn.Controllers
try
{
_logger.LogDebug("Start setup write");
// Bygg connection string säkert
var baseConnBuilder = new MySqlConnectionStringBuilder
{
@@ -126,11 +127,10 @@ namespace Aberwyn.Controllers
// Sätt konfig-flagga tidigt
model.IsConfigured = true;
_logger.LogDebug("Filepath" + _filePath);
// Spara setup.json
var json = JsonSerializer.Serialize(model, new JsonSerializerOptions { WriteIndented = true });
System.IO.File.WriteAllText(_filePath, json);
// Roller och admin
var userManager = scope.ServiceProvider.GetRequiredService<UserManager<ApplicationUser>>();
var roleManager = scope.ServiceProvider.GetRequiredService<RoleManager<IdentityRole>>();