aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/taler-auditor.postinst6
-rw-r--r--debian/taler-exchange.postinst13
2 files changed, 16 insertions, 3 deletions
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
;;
diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst
index 353f7d6be..637ff8e09 100644
--- a/debian/taler-exchange.postinst
+++ b/debian/taler-exchange.postinst
@@ -50,8 +50,17 @@ configure)
adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
fi
- dpkg-statoverride --add --update ${_WIREUSERNAME} root 460 /etc/taler/secrets/exchange-accounts.secret.conf
- dpkg-statoverride --add --update root ${_DBGROUPNAME} 660 /etc/taler/secrets/exchange-db.secret.conf
+ if ! dpkg-statoverride --list /etc/taler/secrets/exchange-accounts.secret.conf >/dev/null 2>&1; then
+ dpkg-statoverride --add --update \
+ ${_WIREUSERNAME} root 460 \
+ /etc/taler/secrets/exchange-accounts.secret.conf
+ fi
+
+ if ! dpkg-statoverride --list /etc/taler/secrets/exchange-db.secret.conf >/dev/null 2>&1; then
+ dpkg-statoverride --add --update \
+ root ${_DBGROUPNAME} 660 \
+ /etc/taler/secrets/exchange-db.secret.conf
+ fi
;;