From 973f364ae31a009dd25054b666d215f6b8b2fb5a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 29 Jul 2021 15:27:54 +0200 Subject: use statoverride conditionally --- debian/taler-auditor.postinst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'debian/taler-auditor.postinst') diff --git a/debian/taler-auditor.postinst b/debian/taler-auditor.postinst index b46bf8446..b515e3e25 100644 --- a/debian/taler-auditor.postinst +++ b/debian/taler-auditor.postinst @@ -24,7 +24,11 @@ configure) echo " done." fi - dpkg-statoverride --add --update ${_USERNAME} ${_GROUPNAME} 660 /etc/taler/secrets/auditor-db.secret.conf + if ! dpkg-statoverride --list /etc/taler/secrets/auditor-db.secret.conf >/dev/null 2>&1; then + dpkg-statoverride --add --update \ + ${_USERNAME} ${_GROUPNAME} 660 \ + /etc/taler/secrets/auditor-db.secret.conf + fi ;; -- cgit v1.2.3