aboutsummarylogtreecommitdiffstats
path: root/install.sh
blob: a450f79facc6a41ea27997fd5878aec30e7949df (plain)
1
2
3
4
5
6
7
8
9
10
# Create automx2 user account if it does not already exist
# vim: ts=4 sw=4 noet
post_install() {
	local u="automx2"
	grep -q "^${u}:" /etc/passwd && return
	local d="/var/lib/${u}"
	echo "Creating user account ${u} with home directory ${d}"
	useradd -mrd "${d}" "${u}"
	rm -fr "${d}"/.*
}