1
0
mirror of /repos/baseimage-docker.git synced 2026-02-27 17:41:59 +01:00

Initial commit

This commit is contained in:
Hongli Lai (Phusion)
2013-11-12 11:39:25 +01:00
commit 9661f84da9
16 changed files with 320 additions and 0 deletions

12
image/setuser Executable file
View 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" "$@"