Skip to content

Commit

Permalink
Fix RootFS User Permissions (#84)
Browse files Browse the repository at this point in the history
* fix user perms in rootfs
* update CODEOWNERS to correct team name
  • Loading branch information
jordan-rash authored Jan 24, 2024
1 parent fd8d975 commit 91a1b0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Code Owners file designates mandatory reviewers
* @synadia-io/cloud-services
* @synadia-io/nex
5 changes: 4 additions & 1 deletion agent/fc-image/rootfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ func build(ctx context.Context, tempdir string, mountPoint string) error {
WithMountedFile("/etc/init.d/agent", orcFile).
WithMountedFile("/usr/local/bin/agent", nexagent).
WithMountedFile("/setup-alpine.sh", bootstrapScript).
WithExec([]string{"sh", "/setup-alpine.sh"})
WithExec([]string{"sh", "/setup-alpine.sh"}).
WithExec([]string{"chown", "1000:1000", "/etc/init.d/agent"}).
WithExec([]string{"chown", "-R", "1000:1000", "/home/nex"}).
WithExec([]string{"chown", "1000:1000", "/usr/local/bin/agent"})

_, err = c.Directory("/tmp/rootfs").
Export(ctx, "./rootfs-mount")
Expand Down

0 comments on commit 91a1b0c

Please sign in to comment.