Fixes for migration add accounts script

This commit is contained in:
2026-09-14 21:16:10 +03:00
parent 4c1fcc6d6f
commit 65c6334793
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ foreach ($row in $rows) {
"@type" = "User" "@type" = "User"
name = $localPart name = $localPart
domainId = "#dom" domainId = "#dom"
credentials = @{ "pw" = @{ "@type" = "Password"; secret = $row.new_password } } credentials = @{ "0" = @{ "@type" = "Password"; secret = $row.new_password } }
memberGroupIds = @{} memberGroupIds = @{}
roles = @{ "@type" = "User" } roles = @{ "@type" = "User" }
permissions = @{ "@type" = "Inherit" } permissions = @{ "@type" = "Inherit" }
+1 -1
View File
@@ -51,7 +51,7 @@ while IFS=',' read -r email new_password old_password aliases quota_mb; do
"@type": "User", "@type": "User",
name: $name, name: $name,
domainId: "#dom", domainId: "#dom",
credentials: { pw: { "@type": "Password", secret: $secret } }, credentials: { "0": { "@type": "Password", secret: $secret } },
memberGroupIds: {}, memberGroupIds: {},
roles: { "@type": "User" }, roles: { "@type": "User" },
permissions: { "@type": "Inherit" }, permissions: { "@type": "Inherit" },