Removed debugging information.

This commit is contained in:
michael 2020-08-19 12:06:24 -05:00
parent 5dae08d7c2
commit 80c456f19a

View file

@ -7,11 +7,15 @@ GROUP_ID=${PGID:-$USER_ID}
echo "Starting with UID : $USER_ID:$GROUP_ID" echo "Starting with UID : $USER_ID:$GROUP_ID"
GROUP=proton GROUP=proton
if getent group $GROUP_ID > /dev/null; then if getent group $GROUP_ID > /dev/null; then
echo "Using group $GROUP with GID $GROUP_ID..."
GROUP=$(getent group $GROUP_ID | cut -d: -f1) GROUP=$(getent group $GROUP_ID | cut -d: -f1)
echo "Using group $GROUP with GID $GROUP_ID..."
else else
groupadd -g $GROUP_ID $GROUP echo "Adding group $GROUP with GID $GROUP_ID..."
addgroup -g $GROUP_ID $GROUP
fi fi
addgroup -g $GROUP_ID proton echo "Adding user proton with group $GROUP..."
echo adduser -D -u $USER_ID -G $GROUP -h /var/lib/proton -s /bin/sh proton
adduser -D -u $USER_ID -G $GROUP -h /var/lib/proton -s /bin/sh proton adduser -D -u $USER_ID -G $GROUP -h /var/lib/proton -s /bin/sh proton
chown -R ${USER_ID}:${GROUP_ID} /var/lib/proton chown -R ${USER_ID}:${GROUP_ID} /var/lib/proton
export HOME=/var/lib/proton export HOME=/var/lib/proton