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 518411b commit 0a10069
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
#!/bin/bash

# Update build uid and gid to align with those of instance
echo "Before usermod"
echo "$(id -g):$(id -u)"
echo "$(whoami)"

su - root
echo "I am (g)root"
echo "$(id -g):$(id -u)"
echo "$(whoami)"
usermod -u $(id -u) wis2downloader
groupmod -g $(id -g) wis2

# switch to wis2downloader user
su - wis2downloader
echo "After usermod"
echo "$(id -g):$(id -u)"
echo "$(whoami)"

# print the download_dir
echo "Download directory in container: $DOWNLOAD_DIR"
Expand Down

0 comments on commit 0a10069

Please sign in to comment.