Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use os.Chown instead of calling chown command #524

Merged
merged 1 commit into from
May 21, 2021

Conversation

haojhcwa
Copy link
Contributor

Description:
Use os.Chown instead of calling chown command when changing ownership of
the aoc config files. This would improve the future portability of the code.
Also fix the aoc running user to be aoc since the environment override is not
very useful but create more complicated use cases.

Testing:
Unit test added and tested locally

Documentation:
No documentation change needed since no behavior change are expected.

Use os.Chown instead of calling chown command when changing ownership of
the aoc config files. Also fix the aoc running user to be `aoc` since
the environment override is not very useful but create more complicated
use cases.
@codecov-commenter
Copy link

Codecov Report

Merging #524 (91d4f1c) into main (ff835af) will decrease coverage by 21.15%.
The diff coverage is 41.17%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main     #524       +/-   ##
===========================================
- Coverage   82.60%   61.45%   -21.16%     
===========================================
  Files           6        8        +2     
  Lines         115      179       +64     
===========================================
+ Hits           95      110       +15     
- Misses         11       54       +43     
- Partials        9       15        +6     
Impacted Files Coverage Δ
pkg/userutils/userutil_linux.go 24.19% <41.17%> (ø)
pkg/userutils/set_uid_gid.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ff835af...91d4f1c. Read the comment docs.

Copy link
Member

@mxiamxia mxiamxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thx

@mxiamxia mxiamxia merged commit bf8b2b0 into aws-observability:main May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants