Different approach, always create npmuser

even if the user id is zero, and then we'll always use it
This commit is contained in:
Jamie Curnow
2023-03-30 11:19:16 +10:00
parent dad8561ea1
commit 4a86bb42cc
6 changed files with 33 additions and 61 deletions

View File

@ -3,17 +3,15 @@
set -e
echo
echo "-------------------------------------
echo "
-------------------------------------
_ _ ____ __ __
| \ | | _ \| \/ |
| \| | |_) | |\/| |
| |\ | __/| | | |
|_| \_|_| |_| |_|
-------------------------------------"
if [[ "$PUID" -ne '0' ]]; then
echo "User UID: $(id -u npmuser)"
echo "User GID: $(id -g npmuser)"
echo "-------------------------------------"
fi
echo
-------------------------------------
User ID: $PUID
Group ID: $PGID
-------------------------------------
"