Skip to content

Commit

Permalink
add redis user
Browse files Browse the repository at this point in the history
  • Loading branch information
reneradoi committed Jun 7, 2024
1 parent c7c51e3 commit 628f1b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ parts:
source-branch: "v1.60.0"
build-snaps:
- go/1.21/stable
non-root-user:
plugin: nil
after: [redis]
overlay-script: |
# Create a user in the $CRAFT_OVERLAY chroot
groupadd -R $CRAFT_OVERLAY -g 1000 redis
useradd -R $CRAFT_OVERLAY -M -r -g redis -u 1000 redis

0 comments on commit 628f1b2

Please sign in to comment.