aboutsummaryrefslogtreecommitdiffstats
path: root/docker/root/etc/cont-init.d/10-adduser
blob: 8ba1aea83cbe2125f7da1348b96ba154ac7541b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/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 getferdi.com
Support our Open Collective at:
https://opencollective.com/getferdi/
-------------------------------------
GID/UID
-------------------------------------'
echo "
User uid:    $(id -u abc)
User gid:    $(id -g abc)
-------------------------------------
"
chown abc:abc /app
chown abc:abc /config
chown abc:abc /defaults