Do not add zerotier-one user if it does not exist (Debian)

This commit is contained in:
Adam Ierymenko 2018-05-02 14:08:42 -07:00
parent 92e716d93d
commit 9001ab5858

4
debian/postinst vendored
View File

@ -2,7 +2,9 @@
case "$1" in
configure)
adduser --system --group --home /var/lib/zerotier-one --no-create-home zerotier-one
if ! id zerotier-one >>/dev/null 2>&1; then
adduser --system --group --home /var/lib/zerotier-one --no-create-home zerotier-one
fi
;;
esac