debian: create .config only if necessary

This commit is contained in:
Florian Dold 2021-07-16 17:45:54 +02:00
parent 65d145b785
commit 65c4afc959
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 7 additions and 3 deletions

1
debian/control vendored
View File

@ -6,6 +6,7 @@ Build-Depends:
autoconf (>=2.59),
automake (>=1.11.1),
autopoint,
bash,
debhelper-compat (= 13),
gettext,
libgnunet-dev,

View File

@ -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