summaryrefslogtreecommitdiff
path: root/debian/taler-exchange.postinst
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-07-16 17:45:54 +0200
committerFlorian Dold <florian@dold.me>2021-07-16 17:45:54 +0200
commit65c4afc959697e150a0e493dda7680d8b0b6c939 (patch)
tree67c0d1dbdb831bdf4419e6437499a47f7a3899f3 /debian/taler-exchange.postinst
parent65d145b78577a4e1770a02ec95ed7770f5b0bfb0 (diff)
downloadexchange-65c4afc959697e150a0e493dda7680d8b0b6c939.tar.gz
exchange-65c4afc959697e150a0e493dda7680d8b0b6c939.tar.bz2
exchange-65c4afc959697e150a0e493dda7680d8b0b6c939.zip
debian: create .config only if necessary
Diffstat (limited to 'debian/taler-exchange.postinst')
-rw-r--r--debian/taler-exchange.postinst9
1 files changed, 6 insertions, 3 deletions
diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst
index 901f768a5..1c776c7ef 100644
--- a/debian/taler-exchange.postinst
+++ b/debian/taler-exchange.postinst
@@ -14,9 +14,12 @@ function fixperm() {
# usage: lncfg user home target
function lncfg() {
- mkdir $TALER_HOME/$2/.config
- chown $1:$1 $TALER_HOME/$2/.config
- ln -sf $TALER_HOME/$2/.config/taler.conf $3
+ local cf=$TALER_HOME/$2/.config
+ if [ ! -e $cf ]; then
+ mkdir $cf
+ chown $1:$1 $cf
+ fi
+ ln -sf $cf/taler.conf $3
}
case "${1}" in