11 lines
177 B
Bash
Executable File
11 lines
177 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
docker_gid=$(stat -c "%g" /run/docker.sock)
|
|
addgroup --gid ${docker_gid} --system docker
|
|
usermod -aG docker yellowtent
|
|
|
|
exec su yellowtent --command "$@"
|
|
|