Package tor: Scripts

Post install

#/etc/chroot.d/tor.all force
/usr/sbin/post_service tor
Pre install

1
2
3
4
5
6
/usr/sbin/groupadd -r -f _tor
/usr/sbin/useradd -r -g _tor -d /var/lib/tor -s /dev/null -c 'Tor user' _tor >/dev/null 2>&1 ||:
if [ $1 -gt 1 ]; then
	chown _tor:auth /etc/tcb/_tor
	/usr/sbin/usermod -d /var/lib/tor _tor
fi
Pre uninstall

1
2
3
4
5
/usr/sbin/preun_service tor

#if [ $1 = 0 ]; then
#	rm -f /var/lib/tor/lib/* /var/lib/tor/var/yp/binding/*
#fi