summarylogtreecommitdiffstats
path: root/nifi.install
blob: 4bc8ad1ff47a14ee594335a3f94556c08e449c57 (plain)
1
2
3
4
5
6
7
8
9
10
post_install() {
	if ! getent passwd nifi > /dev/null; then
		useradd -M -c 'nifi user' -s /usr/bin/nologin nifi
		passwd -l nifi > /dev/null
	fi

	chown -R nifi:nifi /opt/nifi

	echo "==> Installed nifi user"
}