aboutsummaryrefslogtreecommitdiff
path: root/debian/taler-merchant.postinst
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-09-09 15:42:38 +0200
committerChristian Grothoff <christian@grothoff.org>2023-09-09 15:42:38 +0200
commit47ad43f8184173afcb67d6fc4f0b0e8fbb965e08 (patch)
treea5dde2a16cb834e168108c2d71cd0e1792b9597d /debian/taler-merchant.postinst
parent6748cd080de49a51923a31ba15c8c67eadf5122f (diff)
check first
Diffstat (limited to 'debian/taler-merchant.postinst')
-rw-r--r--debian/taler-merchant.postinst10
1 files changed, 6 insertions, 4 deletions
diff --git a/debian/taler-merchant.postinst b/debian/taler-merchant.postinst
index 8f39eaf8..cac1355a 100644
--- a/debian/taler-merchant.postinst
+++ b/debian/taler-merchant.postinst
@@ -32,10 +32,12 @@ configure)
adduser --quiet --system --ingroup ${_GROUPNAME} --no-create-home --home ${TALER_HOME} ${_USERNAME}
fi
- dpkg-statoverride --add --update \
- taler-merchant-httpd root 460 \
- /etc/taler/secrets/merchant-db.secret.conf
-
+ if ! dpkg-statoverride --list /etc/taler/secrets/merchant-db.secret.conf >/dev/null 2>&1
+ then
+ dpkg-statoverride --add --update \
+ taler-merchant-httpd root 460 \
+ /etc/taler/secrets/merchant-db.secret.conf
+ fi
;;
abort-upgrade | abort-remove | abort-deconfigure) ;;