post_install() {
	getent group smokeping  &>/dev/null || groupadd -g 181 smokeping  >/dev/null
	getent passwd smokeping &>/dev/null || useradd -u 181 -d /var/lib/smokeping -g smokeping -s /bin/false smokeping >/dev/null
	chown -R smokeping:smokeping /srv/http/smokeping /etc/smokeping 
}

post_upgrade() {
	post_install
}

pre_remove() {
	getent passwd smokeping &>/dev/null && userdel  smokeping  >/dev/null
	getent group smokeping  &>/dev/null && groupdel smokeping  >/dev/null
	true
}
