diff options
author | 2021-02-05 19:18:05 +0100 | |
---|---|---|
committer | 2021-02-07 10:20:38 +0100 | |
commit | 8337e2632686cf8d0dcf39474019370f7d3dc752 (patch) | |
tree | 7adac5b63d03aff8d81ab1250fa54d3007e51b41 /docker/root/etc/cont-init.d/10-adduser | |
parent | Merge pull request #47 from cromefire/db-path (diff) | |
download | ferdium-server-8337e2632686cf8d0dcf39474019370f7d3dc752.tar.gz ferdium-server-8337e2632686cf8d0dcf39474019370f7d3dc752.tar.zst ferdium-server-8337e2632686cf8d0dcf39474019370f7d3dc752.zip |
Moved getferdi/server-docker into getferdi/server repository.
Add sample docker-compose file and update README.md files in root and docker directories.
Diffstat (limited to 'docker/root/etc/cont-init.d/10-adduser')
-rwxr-xr-x | docker/root/etc/cont-init.d/10-adduser | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/docker/root/etc/cont-init.d/10-adduser b/docker/root/etc/cont-init.d/10-adduser new file mode 100755 index 0000000..8ba1aea --- /dev/null +++ b/docker/root/etc/cont-init.d/10-adduser | |||
@@ -0,0 +1,32 @@ | |||
1 | #!/usr/bin/with-contenv bash | ||
2 | |||
3 | PUID=${PUID:-911} | ||
4 | PGID=${PGID:-911} | ||
5 | |||
6 | groupmod -o -g "$PGID" abc | ||
7 | usermod -o -u "$PUID" abc | ||
8 | |||
9 | echo ' | ||
10 | ------------------------------------- | ||
11 | ____ ___ | ||
12 | / __/__ _______/ (_) | ||
13 | / _// -_) __/ _ / / | ||
14 | _/_/ \__/_/ \_,_/_/ | ||
15 | / __/__ _____ _____ ____ | ||
16 | _\ \/ -_) __/ |/ / -_) __/ | ||
17 | /___/\__/_/ |___/\__/_/ | ||
18 | |||
19 | Brought to you by getferdi.com | ||
20 | Support our Open Collective at: | ||
21 | https://opencollective.com/getferdi/ | ||
22 | ------------------------------------- | ||
23 | GID/UID | ||
24 | -------------------------------------' | ||
25 | echo " | ||
26 | User uid: $(id -u abc) | ||
27 | User gid: $(id -g abc) | ||
28 | ------------------------------------- | ||
29 | " | ||
30 | chown abc:abc /app | ||
31 | chown abc:abc /config | ||
32 | chown abc:abc /defaults \ No newline at end of file | ||