Skip to content

Commit

Permalink
Merge pull request #6 from canonical/add-redis-user
Browse files Browse the repository at this point in the history
add redis user
  • Loading branch information
reneradoi authored Jun 7, 2024
2 parents c7c51e3 + 628f1b2 commit cddf016
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 cddf016

Please sign in to comment.