Update syncuser to read passwd and group from sysconfdir

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-02-11 09:24:24 -07:00
parent b0b4e8117f
commit 01b3c28874
5 changed files with 16 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ import (
func CobraRunE(cmd *cobra.Command, args []string) error {
if SyncUser {
for _, name := range args {
if err := image.SyncUids(name, true); err != nil {
if err := image.Syncuser(name, true); err != nil {
return fmt.Errorf("syncuser error: %w", err)
}
}