1
0
mirror of /repos/baseimage-docker.git synced 2025-12-31 08:11:29 +01:00
Hongli Lai (Phusion) 9661f84da9
Initial commit
2013-11-12 11:39:25 +01:00

13 lines
149 B
Bash
Executable File

#!/bin/bash
set -e
user="$1"
shift
if [[ "$user" == "root" ]]; then
export HOME=/root
else
export HOME=/home/$user
fi
exec chpst -u "$user" "$@"