8 lines
172 B
Bash
Executable file
8 lines
172 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if ! getent passwd git &>/dev/null; then
|
|
echo "creating git user..."
|
|
useradd -m git
|
|
usermod git -aG docker
|
|
chsh -s /home/git/docker-shell git
|
|
fi
|