Skip to content

Commit

Permalink
fix more missing perms (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-rash authored Jan 25, 2024
1 parent a5c6109 commit 3853b64
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions agent/fc-image/rootfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,19 @@ func build(ctx context.Context, tempdir string, mountPoint string) error {
return err
}

err = os.Chown(filepath.Join(mountPoint, "/home/nex"), 1000, 1000)
if err != nil {
return err
}
err = os.Chown(filepath.Join(mountPoint, "/etc/init.d/agent"), 1000, 1000)
if err != nil {
return err
}
err = os.Chown(filepath.Join(mountPoint, "/usr/local/bin/agent"), 1000, 1000)
if err != nil {
return err
}

_, err = c.Stdout(ctx)
if err != nil {
return err
Expand Down

0 comments on commit 3853b64

Please sign in to comment.