From dae09f1a43b58778b01f4bb436504ee2fe8f5357 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 28 Jul 2021 21:33:34 +0200 Subject: [PATCH] debian: no more user config hacks --- debian/taler-exchange.postinst | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst index 67672bde0..18f140f5c 100644 --- a/debian/taler-exchange.postinst +++ b/debian/taler-exchange.postinst @@ -15,22 +15,6 @@ _ESECUSERNAME=taler-exchange-secmod-eddsa _AGGRUSERNAME=taler-exchange-aggregator _WIREUSERNAME=taler-exchange-wire -# usage: fixperm user:group perms file -function fixperm() { - chown "$1" "$3" - chmod "$2" "$3" -} - -# usage: lncfg user home target -function lncfg() { - local cf=$TALER_HOME/$2/.config - if [ ! -e $cf ]; then - mkdir $cf - chown $(stat -L -c %u $TALER_HOME/$2):$(stat -L -c %g $TALER_HOME/$2) $cf - fi - ln -sf $3 $cf/taler.conf -} - case "${1}" in configure) @@ -69,12 +53,6 @@ configure) fixperm ${_WIREUSERNAME}:root 460 /etc/taler/exchange-wire-gateway.conf fixperm root:${_DBGROUPNAME} 640 /etc/taler/exchange-db.conf - lncfg ${_EUSERNAME} httpd /etc/taler/exchange-service-default.conf - lncfg ${_RSECUSERNAME} secmod-rsa /etc/taler/exchange-service-default.conf - lncfg ${_ESECUSERNAME} secmod-eddsa /etc/taler/exchange-service-default.conf - lncfg ${_AGGRUSERNAME} aggregator /etc/taler/exchange-service-default.conf - lncfg ${_CLOSERUSERNAME} closer /etc/taler/exchange-service-default.conf - lncfg ${_WIREUSERNAME} wire /etc/taler/exchange-service-wire.conf ;; abort-upgrade | abort-remove | abort-deconfigure) ;;