rebase to xenial
This commit is contained in:
parent
b9224a43b0
commit
501683a3d5
13 changed files with 111 additions and 715 deletions
31
root/etc/cont-init.d/10_add_user
Normal file
31
root/etc/cont-init.d/10_add_user
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
|
||||
|
||||
|
||||
PUID=${PUID:-911}
|
||||
PGID=${PGID:-911}
|
||||
|
||||
if [ ! "$(id -u abc)" -eq "$PUID" ]; then usermod -o -u "$PUID" abc ; fi
|
||||
if [ ! "$(id -g abc)" -eq "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
|
||||
|
||||
echo "
|
||||
-------------------------------------
|
||||
_ _ _
|
||||
| |___| (_) ___
|
||||
| / __| | |/ _ \
|
||||
| \__ \ | | (_) |
|
||||
|_|___/ |_|\___/
|
||||
|_|
|
||||
|
||||
Brought to you by linuxserver.io
|
||||
We do accept donations at:
|
||||
https://www.linuxserver.io/donations
|
||||
-------------------------------------
|
||||
GID/UID
|
||||
-------------------------------------
|
||||
User uid: $(id -u abc)
|
||||
User gid: $(id -g abc)
|
||||
-------------------------------------
|
||||
"
|
||||
chown abc:abc /config
|
||||
chown abc:abc /defaults
|
||||
Loading…
Add table
Add a link
Reference in a new issue