engine: resources: Add log messages for chmod and chown

This commit is contained in:
James Shubin
2024-08-01 20:32:56 -04:00
parent 88670ae7a1
commit c974820c56

View File

@@ -1186,6 +1186,7 @@ func (obj *FileRes) chownCheckApply(ctx context.Context, apply bool) (bool, erro
return false, nil return false, nil
} }
obj.init.Logf("chown %s:%s %s", obj.Owner, obj.Group, obj.getPath())
return false, os.Chown(obj.getPath(), expectedUID, expectedGID) return false, os.Chown(obj.getPath(), expectedUID, expectedGID)
} }
@@ -1220,6 +1221,7 @@ func (obj *FileRes) chmodCheckApply(ctx context.Context, apply bool) (bool, erro
return false, nil return false, nil
} }
obj.init.Logf("chmod %s %s", obj.Mode, obj.getPath())
return false, os.Chmod(obj.getPath(), mode) return false, os.Chmod(obj.getPath(), mode)
} }