From 5c2a112b0f07318a1d8236e90cc8c630b70d496d Mon Sep 17 00:00:00 2001 From: silverpill Date: Wed, 11 May 2022 16:17:17 +0000 Subject: [PATCH] Fix postinst hook in debian package --- contrib/debian/{postinst.ex => postinst} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename contrib/debian/{postinst.ex => postinst} (72%) diff --git a/contrib/debian/postinst.ex b/contrib/debian/postinst similarity index 72% rename from contrib/debian/postinst.ex rename to contrib/debian/postinst index 56f7cd4..f9a00c3 100644 --- a/contrib/debian/postinst.ex +++ b/contrib/debian/postinst @@ -4,7 +4,9 @@ set -e case "$1" in configure) - adduser --system --group --home /var/lib/mitra mitra + if ! getent passwd mitra > /dev/null; then + adduser --system --group --home /var/lib/mitra mitra + fi ;; abort-upgrade|abort-remove|abort-deconfigure)