mirror of
/repos/baseimage-docker.git
synced 2026-02-27 17:41:59 +01:00
Initial commit
This commit is contained in:
12
image/setuser
Executable file
12
image/setuser
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
user="$1"
|
||||
shift
|
||||
|
||||
if [[ "$user" == "root" ]]; then
|
||||
export HOME=/root
|
||||
else
|
||||
export HOME=/home/$user
|
||||
fi
|
||||
exec chpst -u "$user" "$@"
|
||||
Reference in New Issue
Block a user