didyouexpectthat_zerotierone/debian/postinst
didyouexpectthat 29e340f2b6
Unblock zt0 adapter from Avahi
Avahi blocks ZeroTier advertisements, so remove the zt0 deny-interfaces config.
2018-01-23 11:19:03 -08:00

15 lines
339 B
Bash

#!/bin/sh -e
case "$1" in
configure)
adduser --system --group --home /var/lib/zerotier-one --no-create-home zerotier-one
;;
esac
# avahi explicitly doesn't broadcast over ZeroTier
# so tell avahi to change the config
# avahi already reloads config on file change
sed -i 's/,zt0//' /etc/avahi/avahi-daemon.conf
#DEBHELPER#