admin: Fix team symlink for dex generation
This commit is contained in:
parent
498e3c5b63
commit
36af72d616
@ -210,7 +210,7 @@ func genDexConfig() ([]byte, error) {
|
|||||||
} else {
|
} else {
|
||||||
// Also generate team associations
|
// Also generate team associations
|
||||||
for _, team := range teams {
|
for _, team := range teams {
|
||||||
if err := os.Symlink(fmt.Sprintf("%d", team.Id), path.Join(TeamsDir, fmt.Sprintf("%02d", team.Id))); err != nil {
|
if err := os.Symlink(fmt.Sprintf("%d", team.Id), path.Join(TeamsDir, fmt.Sprintf("team%02d", team.Id))); err != nil {
|
||||||
log.Println("Unable to create association symlink:", err.Error())
|
log.Println("Unable to create association symlink:", err.Error())
|
||||||
return nil, fmt.Errorf("Unable to create association symlink: %s", err.Error())
|
return nil, fmt.Errorf("Unable to create association symlink: %s", err.Error())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user