Ensure the GID is actually dynamically assigned to a group as well.

This commit is contained in:
Kjeld Schouten-Lebbing
2022-04-06 09:48:52 +02:00
committed by GitHub
parent 25688e6709
commit 6cb4fd6f96

View File

@@ -2,6 +2,7 @@
echo "---Checking if UID: ${UID} matches user---" echo "---Checking if UID: ${UID} matches user---"
usermod -u ${UID} ${USER} usermod -u ${UID} ${USER}
echo "---Checking if GID: ${GID} matches user---" echo "---Checking if GID: ${GID} matches user---"
groupmod -g ${GID} ${GROUP}
usermod -g ${GID} ${USER} usermod -g ${GID} ${USER}
echo "---Setting umask to ${UMASK}---" echo "---Setting umask to ${UMASK}---"
umask ${UMASK} umask ${UMASK}
@@ -33,4 +34,4 @@ while true
do do
wait $killpid wait $killpid
exit 0; exit 0;
done done