blob: dfec5d0ee2f4d2f8c133729d0aa3327fd011ee9a (
plain)
1
2
3
4
5
6
7
8
9
10
|
post_install() {
if ! getent passwd repro >/dev/null; then
useradd -c 'repro user' -d '/var/lib/repro' -s /bin/nologin repro --system
fi
if [ ! -d '/var/lib/repro' ]; then
mkdir -p '/var/lib/repro'
touch '/var/lib/repro/users.txt'
chown -R repro:repro '/var/lib/repro'
fi
}
|