Create 10-adduser

This commit is contained in:
Alexandre
2021-03-02 11:41:13 +01:00
committed by GitHub
parent f0997270b2
commit 8f0e4b725b

View File

@@ -0,0 +1,41 @@
#!/usr/bin/with-contenv bash
PUID=${PUID:-911}
PGID=${PGID:-911}
groupmod -o -g "$PGID" abc
usermod -o -u "$PUID" abc
echo '
-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
-------------------------------------'
if [[ -f /donate.txt ]]; then
echo '
To support the app dev(s) visit:'
cat /donate.txt
fi
echo '
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------'
echo "
User uid: $(id -u abc)
User gid: $(id -g abc)
-------------------------------------
"
mkdir -p /config/papermerge || true
chown abc:abc /app
chown abc:abc /config/papermerge
chown abc:abc /defaults