mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-26 19:21:39 +00:00
cleanup + added modified init-adduser
This commit is contained in:
parent
39a79ec4b2
commit
30eaa32e05
5 changed files with 74 additions and 55 deletions
49
build/docker/root/etc/cont-init.d/10-adduser
Normal file
49
build/docker/root/etc/cont-init.d/10-adduser
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
PUID=${AUDIOBOOKSHELF_UID:-1000}
|
||||
PGID=${AUDIOBOOKSHELF_GID:-1000}
|
||||
|
||||
groupmod -o -g "$PGID" abc
|
||||
usermod -o -u "$PUID" abc
|
||||
|
||||
echo '
|
||||
-------------------------------------
|
||||
|
||||
█████╗ ██████╗ ███████╗
|
||||
██╔══██╗██╔══██╗██╔════╝
|
||||
███████║██████╔╝███████╗
|
||||
██╔══██║██╔══██╗╚════██║
|
||||
██║ ██║██████╔╝███████║
|
||||
╚═╝ ╚═╝╚═════╝ ╚══════╝
|
||||
|
||||
https://audiobookshelf.org
|
||||
|
||||
-------------------------------------
|
||||
GID/UID
|
||||
-------------------------------------'
|
||||
echo "
|
||||
User uid: $(id -u abc)
|
||||
User gid: $(id -g abc)
|
||||
-------------------------------------
|
||||
"
|
||||
|
||||
time32="$(date +%Y)"
|
||||
|
||||
if [[ "${time32}" == "1970" || "${time32}" == "1969" ]] && [ "$(uname -m)" == "armv7l" ]; then
|
||||
echo '
|
||||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
Your DockerHost is running an outdated version of libseccomp
|
||||
|
||||
To fix this, please visit https://docs.linuxserver.io/faq#libseccomp
|
||||
|
||||
Apps will not behave correctly without this
|
||||
|
||||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
'
|
||||
sleep infinity
|
||||
fi
|
||||
|
||||
chown abc:abc /app
|
||||
chown abc:abc /defaults
|
||||
Loading…
Add table
Add a link
Reference in a new issue