debian: create .config only if necessary
This commit is contained in:
parent
65d145b785
commit
65c4afc959
1
debian/control
vendored
1
debian/control
vendored
@ -6,6 +6,7 @@ Build-Depends:
|
|||||||
autoconf (>=2.59),
|
autoconf (>=2.59),
|
||||||
automake (>=1.11.1),
|
automake (>=1.11.1),
|
||||||
autopoint,
|
autopoint,
|
||||||
|
bash,
|
||||||
debhelper-compat (= 13),
|
debhelper-compat (= 13),
|
||||||
gettext,
|
gettext,
|
||||||
libgnunet-dev,
|
libgnunet-dev,
|
||||||
|
9
debian/taler-exchange.postinst
vendored
9
debian/taler-exchange.postinst
vendored
@ -14,9 +14,12 @@ function fixperm() {
|
|||||||
|
|
||||||
# usage: lncfg user home target
|
# usage: lncfg user home target
|
||||||
function lncfg() {
|
function lncfg() {
|
||||||
mkdir $TALER_HOME/$2/.config
|
local cf=$TALER_HOME/$2/.config
|
||||||
chown $1:$1 $TALER_HOME/$2/.config
|
if [ ! -e $cf ]; then
|
||||||
ln -sf $TALER_HOME/$2/.config/taler.conf $3
|
mkdir $cf
|
||||||
|
chown $1:$1 $cf
|
||||||
|
fi
|
||||||
|
ln -sf $cf/taler.conf $3
|
||||||
}
|
}
|
||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
|
Loading…
Reference in New Issue
Block a user