gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: debian: create .config only if n


From: gnunet
Subject: [taler-exchange] branch master updated: debian: create .config only if necessary
Date: Fri, 16 Jul 2021 17:46:00 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 65c4afc9 debian: create .config only if necessary
65c4afc9 is described below

commit 65c4afc959697e150a0e493dda7680d8b0b6c939
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Jul 16 17:45:54 2021 +0200

    debian: create .config only if necessary
---
 debian/control                 | 1 +
 debian/taler-exchange.postinst | 9 ++++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 4519c8cf..8ea436df 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Build-Depends:
  autoconf (>=2.59),
  automake (>=1.11.1),
  autopoint,
+ bash,
  debhelper-compat (= 13),
  gettext,
  libgnunet-dev,
diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst
index 901f768a..1c776c7e 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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]