summarylogtreecommitdiffstats
path: root/airdcpp.install
blob: 9214e799c56b2c39ceea7e4effa35e6dae5edea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
	getent group airdcpp &>/dev/null || groupadd -r -g 170 airdcpp >/dev/null
	getent passwd airdcpp &>/dev/null || useradd -r -u 170 -g airdcpp -d /var/lib/airdcpp -s /bin/false airdcpp >/dev/null
	true
	
	echo "Create configuration and enable user service by:"
	echo "$ airdcppd --configure"
	echo "$ systemctl --user enable airdcpp"
}

post_remove() {
	getent passwd airdcpp &>/dev/null && userdel airdcpp >/dev/null
	getent group airdcpp &>/dev/null && groupdel airdcpp >/dev/null
	true
}