mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
docker: Give user default name
This commit is contained in:
10
docker_entrypoint.sh
Executable file
10
docker_entrypoint.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
getent passwd $(id -u) > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
getent group $(id -g)
|
||||
if [ $? -ne 0 ]; then
|
||||
su root -c "groupadd -g $(id -g) eh"
|
||||
fi
|
||||
su root -c "useradd -g $(id -g) -m -s /bin/bash -u $(id -u) eh"
|
||||
fi
|
||||
deno task server
|
||||
Reference in New Issue
Block a user