Skip to content

Commit

Permalink
Testing permissions and uid/gid
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Aug 19, 2024
1 parent f60a8ae commit e772660
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/bin/bash
echo "$(id -u):$(id-g)"
echo "$(id -u):$(id -g)"
# Update build uid and gid to align with those of instance
sudo "usermod -u 1020 wis2downloader"
sudo "groupmod -g 127 wis2"
usermod -u 1020 wis2downloader
groupmod -g 127 wis2

# remove wis2downloader from sudo group
sudo "usermod -g wis2 wis2downloader"

# now demote to wis2downlaoder user
su -c wis2downloader
# print the download_dir
echo "Download directory in container: $DOWNLOAD_DIR"

Expand Down

0 comments on commit e772660

Please sign in to comment.