debian: new config file structure
This commit is contained in:
parent
970c9eab86
commit
5597dc6f1e
38
debian/etc/taler-exchange.conf
vendored
38
debian/etc/taler-exchange.conf
vendored
@ -1,38 +0,0 @@
|
|||||||
# First line should be: "INLINE@ taler-exchange-db.conf"
|
|
||||||
# 2nd line should be: "INLINE@ taler-secmod.conf"
|
|
||||||
@INLINE@ taler-exchange-db.conf
|
|
||||||
@INLINE@ taler-secmod.conf
|
|
||||||
# Do not edit this file using 'taler-config', otherwise the line
|
|
||||||
# above will be lost!
|
|
||||||
#
|
|
||||||
# Please read the taler-exchange.README.Debian for how to configure a Taler exchange.
|
|
||||||
#
|
|
||||||
|
|
||||||
[PATHS]
|
|
||||||
|
|
||||||
# Move runtime data "tmp" directory to /var/lib/taler-exchange/
|
|
||||||
# to possibly provide additional protection from unwarranted access.
|
|
||||||
TALER_RUNTIME_DIR = /var/lib/taler-exchange/tmp/
|
|
||||||
|
|
||||||
[exchange]
|
|
||||||
# Debian package is configured to use a reverse proxy with a UNIX
|
|
||||||
# domain socket. See nginx/apache configuration files.
|
|
||||||
SERVE = UNIX
|
|
||||||
UNIXPATH = /var/lib/taler-exchange/exchange.sock
|
|
||||||
|
|
||||||
# Only supported database is Postgres right now.
|
|
||||||
DATABASE = postgres
|
|
||||||
|
|
||||||
# Here you MUST add the master public key of the offline system
|
|
||||||
# which you can get using `taler-exchange-offline setup`.
|
|
||||||
# This is just an example, your key will be different!
|
|
||||||
# MASTER_PUBLIC_KEY = YE6Q6TR1EDB7FD0S68TGDZGF1P0GHJD2S0XVV8R2S62MYJ6HJ4ZG
|
|
||||||
MASTER_PUBLIC_KEY =
|
|
||||||
|
|
||||||
# For your terms of service and privacy policy, you should specify
|
|
||||||
# an Etag that must be updated whenever there are significant
|
|
||||||
# changes to either document. The format is up to you, what matters
|
|
||||||
# is that the value is updated and never re-used. See the HTTP
|
|
||||||
# specification on Etags.
|
|
||||||
# TERMS_ETAG =
|
|
||||||
# PRIVACY_ETAG =
|
|
1
debian/etc/taler/auditor-service-default.conf
vendored
Normal file
1
debian/etc/taler/auditor-service-default.conf
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
@INCLUDE@ /etc/taler/auditor-system.conf
|
@ -1,13 +1,23 @@
|
|||||||
[PATHS]
|
|
||||||
|
|
||||||
# Move runtime data "tmp" directory to /var/lib/taler-exchange/
|
|
||||||
# to possibly provide additional protection from unwarranted access.
|
|
||||||
TALER_RUNTIME_DIR = /var/lib/taler-exchange/tmp/
|
TALER_RUNTIME_DIR = /var/lib/taler-exchange/tmp/
|
||||||
|
|
||||||
[taler]
|
[taler]
|
||||||
# Here you need to set the currency of your exchange:
|
# Here you need to set the currency of your exchange:
|
||||||
# CURRENCY = KUDOS
|
# CURRENCY = KUDOS
|
||||||
|
|
||||||
|
# Here you MUST add the master public key of the offline system
|
||||||
|
# which you can get using `taler-exchange-offline setup`.
|
||||||
|
# This is just an example, your key will be different!
|
||||||
|
# MASTER_PUBLIC_KEY = YE6Q6TR1EDB7FD0S68TGDZGF1P0GHJD2S0XVV8R2S62MYJ6HJ4ZG
|
||||||
|
MASTER_PUBLIC_KEY =
|
||||||
|
|
||||||
|
# For your terms of service and privacy policy, you should specify
|
||||||
|
# an Etag that must be updated whenever there are significant
|
||||||
|
# changes to either document. The format is up to you, what matters
|
||||||
|
# is that the value is updated and never re-used. See the HTTP
|
||||||
|
# specification on Etags.
|
||||||
|
# TERMS_ETAG =
|
||||||
|
# PRIVACY_ETAG =
|
||||||
|
|
||||||
|
|
||||||
# You must specify the various denominations to be offered by your exchange
|
# You must specify the various denominations to be offered by your exchange
|
||||||
# in sections called "coin_".
|
# in sections called "coin_".
|
@ -1,5 +1,4 @@
|
|||||||
# This file should contain the access control information to talk to
|
# Database configuration for the Taler exchange.
|
||||||
# the exchange database.
|
|
||||||
|
|
||||||
[exchangedb-postgres]
|
[exchangedb-postgres]
|
||||||
|
|
3
debian/etc/taler/exchange-service-default.conf
vendored
Normal file
3
debian/etc/taler/exchange-service-default.conf
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@INCLUDE@ /etc/taler/exchange-system.conf
|
||||||
|
@INCLUDE@ /etc/taler/exchange-db.conf
|
||||||
|
@INCLUDE@ /etc/taler/exchange-business.conf
|
4
debian/etc/taler/exchange-service-wire.conf
vendored
Normal file
4
debian/etc/taler/exchange-service-wire.conf
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
@INCLUDE@ /etc/taler/exchange-system.conf
|
||||||
|
@INCLUDE@ /etc/taler/exchange-db.conf
|
||||||
|
@INCLUDE@ /etc/taler/exchange-business.conf
|
||||||
|
@INCLUDE@ /etc/taler/exchange-wire-gateway.conf
|
21
debian/etc/taler/exchange-system.conf
vendored
Normal file
21
debian/etc/taler/exchange-system.conf
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Configuration settings for system parameters of
|
||||||
|
# the exchange. Should be included in all service-specific
|
||||||
|
# configuration files for the exchange.
|
||||||
|
#
|
||||||
|
# Please read the taler-exchange.README.Debian for how to configure a Taler exchange.
|
||||||
|
|
||||||
|
[PATHS]
|
||||||
|
|
||||||
|
# Move runtime data "tmp" directory to /var/lib/taler-exchange/
|
||||||
|
# to possibly provide additional protection from unwarranted access.
|
||||||
|
TALER_RUNTIME_DIR = /var/lib/taler-exchange/tmp/
|
||||||
|
|
||||||
|
|
||||||
|
[exchange]
|
||||||
|
# Debian package is configured to use a reverse proxy with a UNIX
|
||||||
|
# domain socket. See nginx/apache configuration files.
|
||||||
|
SERVE = UNIX
|
||||||
|
UNIXPATH = /var/lib/taler-exchange/exchange.sock
|
||||||
|
|
||||||
|
# Only supported database is Postgres right now.
|
||||||
|
DATABASE = postgres
|
@ -1,9 +1,3 @@
|
|||||||
# First line should be: "INLINE@ taler-exchange-db.conf"
|
|
||||||
@INLINE@ taler-exchange-db.conf
|
|
||||||
# Do not edit this file using 'taler-config', otherwise the line
|
|
||||||
# above will be lost!
|
|
||||||
|
|
||||||
|
|
||||||
# This file should contain the wire account access information which is needed
|
# This file should contain the wire account access information which is needed
|
||||||
# by the Taler exchange to talk to LibEuFin to interact with the bank.
|
# by the Taler exchange to talk to LibEuFin to interact with the bank.
|
||||||
# The file SHOULD only be readable for the "taler-exchange-wire" user,
|
# The file SHOULD only be readable for the "taler-exchange-wire" user,
|
2
debian/taler-auditor.install
vendored
2
debian/taler-auditor.install
vendored
@ -13,6 +13,6 @@ usr/share/man/man1/taler-helper-auditor*
|
|||||||
usr/share/info/taler-auditor*
|
usr/share/info/taler-auditor*
|
||||||
usr/share/taler/config.d/auditor*
|
usr/share/taler/config.d/auditor*
|
||||||
usr/share/taler/sql/auditor/*
|
usr/share/taler/sql/auditor/*
|
||||||
debian/etc/taler-auditor.conf etc/
|
debian/etc/taler/auditor* etc/
|
||||||
debian/auditor-conf/* etc/taler-auditor/
|
debian/auditor-conf/* etc/taler-auditor/
|
||||||
usr/share/taler-exchange/auditor-report.tex.j2
|
usr/share/taler-exchange/auditor-report.tex.j2
|
||||||
|
4
debian/taler-exchange.install
vendored
4
debian/taler-exchange.install
vendored
@ -6,7 +6,7 @@ usr/share/man/man1/taler-wire*
|
|||||||
usr/share/info/taler-bank*
|
usr/share/info/taler-bank*
|
||||||
usr/share/info/taler-exchange*
|
usr/share/info/taler-exchange*
|
||||||
usr/share/taler/config.d/*
|
usr/share/taler/config.d/*
|
||||||
debian/etc/* etc/
|
debian/etc/exchange* etc/
|
||||||
debian/exchange-conf/* etc/taler-exchange/
|
debian/exchange-conf/* usr/share/taler/sample-configs/
|
||||||
usr/share/taler-exchange/pp/*/*
|
usr/share/taler-exchange/pp/*/*
|
||||||
usr/share/taler-exchange/tos/*/*
|
usr/share/taler-exchange/tos/*/*
|
||||||
|
91
debian/taler-exchange.postinst
vendored
91
debian/taler-exchange.postinst
vendored
@ -2,11 +2,23 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
|
# usage: fixperm user:group perms file
|
||||||
|
function fixperm() {
|
||||||
|
chown "$1" "$3"
|
||||||
|
chmod "$2" "$3"
|
||||||
|
}
|
||||||
|
|
||||||
|
# usage: lncfg user target
|
||||||
|
function lncfg() {
|
||||||
|
mkdir ~$1/.config
|
||||||
|
chown $1:$1 ~$1/.config
|
||||||
|
ln -sf $1/.config/taler.conf $2
|
||||||
|
}
|
||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
configure)
|
configure)
|
||||||
db_version 2.0
|
db_version 2.0
|
||||||
|
|
||||||
db_get taler-exchange/eusername
|
db_get taler-exchange/eusername
|
||||||
@ -36,48 +48,41 @@ case "${1}" in
|
|||||||
TALER_HOME="/var/lib/taler-exchange"
|
TALER_HOME="/var/lib/taler-exchange"
|
||||||
|
|
||||||
# Creating taler groups as needed
|
# Creating taler groups as needed
|
||||||
if ! getent group ${_GROUPNAME} > /dev/null
|
if ! getent group ${_GROUPNAME} >/dev/null; then
|
||||||
then
|
|
||||||
echo -n "Creating new Taler group ${_GROUPNAME}:"
|
echo -n "Creating new Taler group ${_GROUPNAME}:"
|
||||||
addgroup --quiet --system ${_GROUPNAME}
|
addgroup --quiet --system ${_GROUPNAME}
|
||||||
echo " done."
|
echo " done."
|
||||||
fi
|
fi
|
||||||
if ! getent group ${_DBGROUPNAME} > /dev/null
|
if ! getent group ${_DBGROUPNAME} >/dev/null; then
|
||||||
then
|
|
||||||
echo -n "Creating new Taler group ${_DBGROUPNAME}:"
|
echo -n "Creating new Taler group ${_DBGROUPNAME}:"
|
||||||
addgroup --quiet --system ${_DBGROUPNAME}
|
addgroup --quiet --system ${_DBGROUPNAME}
|
||||||
echo " done."
|
echo " done."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Creating taler users if needed
|
# Creating taler users if needed
|
||||||
if ! getent passwd ${_EUSERNAME} > /dev/null
|
if ! getent passwd ${_EUSERNAME} >/dev/null; then
|
||||||
then
|
|
||||||
echo -n "Creating new Taler user ${_EUSERNAME}:"
|
echo -n "Creating new Taler user ${_EUSERNAME}:"
|
||||||
adduser --quiet --system --ingroup ${_GROUPNAME} --home ${TALER_HOME}/httpd ${_EUSERNAME}
|
adduser --quiet --system --ingroup ${_GROUPNAME} --home ${TALER_HOME}/httpd ${_EUSERNAME}
|
||||||
adduser ${_EUSERNAME} ${_DBGROUPNAME}
|
adduser ${_EUSERNAME} ${_DBGROUPNAME}
|
||||||
echo " done."
|
echo " done."
|
||||||
fi
|
fi
|
||||||
if ! getent passwd ${_RSECUSERNAME} > /dev/null
|
if ! getent passwd ${_RSECUSERNAME} >/dev/null; then
|
||||||
then
|
|
||||||
echo -n "Creating new Taler user ${_RSECUSERNAME}:"
|
echo -n "Creating new Taler user ${_RSECUSERNAME}:"
|
||||||
adduser --quiet --system --ingroup ${_GROUPNAME} --home ${TALER_HOME}/secmod-rsa ${_RSECUSERNAME}
|
adduser --quiet --system --ingroup ${_GROUPNAME} --home ${TALER_HOME}/secmod-rsa ${_RSECUSERNAME}
|
||||||
echo " done."
|
echo " done."
|
||||||
fi
|
fi
|
||||||
if ! getent passwd ${_ESECUSERNAME} > /dev/null
|
if ! getent passwd ${_ESECUSERNAME} >/dev/null; then
|
||||||
then
|
|
||||||
echo -n "Creating new Taler user ${_ESECUSERNAME}:"
|
echo -n "Creating new Taler user ${_ESECUSERNAME}:"
|
||||||
adduser --quiet --system --ingroup ${_GROUPNAME} --home ${TALER_HOME}/secmod-eddsa ${_ESECUSERNAME}
|
adduser --quiet --system --ingroup ${_GROUPNAME} --home ${TALER_HOME}/secmod-eddsa ${_ESECUSERNAME}
|
||||||
echo " done."
|
echo " done."
|
||||||
fi
|
fi
|
||||||
if ! getent passwd ${_WIREUSERNAME} > /dev/null
|
if ! getent passwd ${_WIREUSERNAME} >/dev/null; then
|
||||||
then
|
|
||||||
echo -n "Creating new Taler user ${_WIREUSERNAME}:"
|
echo -n "Creating new Taler user ${_WIREUSERNAME}:"
|
||||||
adduser --quiet --system --home ${TALER_HOME}/wire ${_WIREUSERNAME}
|
adduser --quiet --system --home ${TALER_HOME}/wire ${_WIREUSERNAME}
|
||||||
adduser --quiet ${_WIREUSERNAME} ${_DBGROUPNAME}
|
adduser --quiet ${_WIREUSERNAME} ${_DBGROUPNAME}
|
||||||
echo " done."
|
echo " done."
|
||||||
fi
|
fi
|
||||||
if ! getent passwd ${_AGGRUSERNAME} > /dev/null
|
if ! getent passwd ${_AGGRUSERNAME} >/dev/null; then
|
||||||
then
|
|
||||||
echo -n "Creating new Taler user ${_AGGRUSERNAME}:"
|
echo -n "Creating new Taler user ${_AGGRUSERNAME}:"
|
||||||
adduser --quiet --system --home ${TALER_HOME}/aggregator ${_AGGRUSERNAME}
|
adduser --quiet --system --home ${TALER_HOME}/aggregator ${_AGGRUSERNAME}
|
||||||
adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
|
adduser --quiet ${_AGGRUSERNAME} ${_DBGROUPNAME}
|
||||||
@ -88,20 +93,20 @@ case "${1}" in
|
|||||||
echo -n "Writing new configuration file:"
|
echo -n "Writing new configuration file:"
|
||||||
CONFIG_NEW=$(tempfile)
|
CONFIG_NEW=$(tempfile)
|
||||||
|
|
||||||
cat > "${CONFIG_NEW}" <<EOF
|
cat >"${CONFIG_NEW}" <<EOF
|
||||||
# This file controls the behaviour of the Taler init script.
|
# This file controls the behaviour of the Taler init script.
|
||||||
# It will be parsed as a shell script.
|
# It will be parsed as a shell script.
|
||||||
# please do not edit by hand, use 'dpkg-reconfigure taler-exchange'.
|
# please do not edit by hand, use 'dpkg-reconfigure taler-exchange'.
|
||||||
|
|
||||||
TALER_EUSER=${_EUSERNAME}
|
TALER_EUSER=${_EUSERNAME}
|
||||||
TALER_RSECUSER=${_RESCUSERNAME}
|
TALER_RSECUSER=${_RSECUSERNAME}
|
||||||
TALER_ESECUSER=${_ESECUSERNAME}
|
TALER_ESECUSER=${_ESECUSERNAME}
|
||||||
TALER_WIREUSER=${_WIREUSERNAME}
|
TALER_WIREUSER=${_WIREUSERNAME}
|
||||||
TALER_AGGRUSER=${_AGGRUSERNAME}
|
TALER_AGGRUSER=${_AGGRUSERNAME}
|
||||||
TALER_GROUP=${_GROUPNAME}
|
TALER_GROUP=${_GROUPNAME}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > "/etc/systemd/system/taler-exchange-httpd.socket" <<EOF
|
cat >"/etc/systemd/system/taler-exchange-httpd.socket" <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Taler Exchange Socket
|
Description=Taler Exchange Socket
|
||||||
PartOf=taler-exchange-httpd.service
|
PartOf=taler-exchange-httpd.service
|
||||||
@ -118,7 +123,7 @@ SocketMode=0660
|
|||||||
WantedBy=sockets.target
|
WantedBy=sockets.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > "/etc/systemd/system/taler-exchange-httpd.service" <<EOF
|
cat >"/etc/systemd/system/taler-exchange-httpd.service" <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=GNU Taler payment system exchange REST API
|
Description=GNU Taler payment system exchange REST API
|
||||||
AssertPathExists=/var/lib/taler-exchange/
|
AssertPathExists=/var/lib/taler-exchange/
|
||||||
@ -131,7 +136,7 @@ EnvironmentFile=/etc/default/taler-exchange
|
|||||||
User=${_EUSERNAME}
|
User=${_EUSERNAME}
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
ExecStart=/usr/bin/taler-exchange-httpd -c /etc/taler-exchange.conf
|
ExecStart=/usr/bin/taler-exchange-httpd -c /etc/taler/exchange-service-default.conf
|
||||||
PrivateTmp=no
|
PrivateTmp=no
|
||||||
PrivateDevices=yes
|
PrivateDevices=yes
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
@ -140,7 +145,7 @@ ProtectSystem=full
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > "/etc/systemd/system/taler-exchange-secmod-rsa.service" <<EOF
|
cat >"/etc/systemd/system/taler-exchange-secmod-rsa.service" <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=GNU Taler payment system exchange RSA security module
|
Description=GNU Taler payment system exchange RSA security module
|
||||||
|
|
||||||
@ -149,13 +154,13 @@ EnvironmentFile=/etc/default/taler-exchange
|
|||||||
User=${_RSECUSERNAME}
|
User=${_RSECUSERNAME}
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
ExecStart=/usr/bin/taler-exchange-secmod-rsa -c /etc/taler-secmod.conf
|
ExecStart=/usr/bin/taler-exchange-secmod-rsa -c /etc/taler/exchange-service-default.conf
|
||||||
PrivateTmp=no
|
PrivateTmp=no
|
||||||
PrivateDevices=yes
|
PrivateDevices=yes
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
cat > "/etc/systemd/system/taler-exchange-secmod-eddsa.service" <<EOF
|
cat >"/etc/systemd/system/taler-exchange-secmod-eddsa.service" <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=GNU Taler payment system exchange EdDSA security module
|
Description=GNU Taler payment system exchange EdDSA security module
|
||||||
|
|
||||||
@ -164,13 +169,13 @@ EnvironmentFile=/etc/default/taler-exchange
|
|||||||
User=${_ESECUSERNAME}
|
User=${_ESECUSERNAME}
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
ExecStart=/usr/bin/taler-exchange-secmod-eddsa -c /etc/taler-secmod.conf
|
ExecStart=/usr/bin/taler-exchange-secmod-eddsa -c /etc/taler/exchange-service-default.conf
|
||||||
PrivateTmp=no
|
PrivateTmp=no
|
||||||
PrivateDevices=yes
|
PrivateDevices=yes
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
cat > "/etc/systemd/system/taler-exchange-wirewatch.service" <<EOF
|
cat >"/etc/systemd/system/taler-exchange-wirewatch.service" <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=GNU Taler payment system exchange wirewatch service
|
Description=GNU Taler payment system exchange wirewatch service
|
||||||
After=network.target
|
After=network.target
|
||||||
@ -180,14 +185,14 @@ EnvironmentFile=/etc/default/taler-exchange
|
|||||||
User=${_WIREUSERNAME}
|
User=${_WIREUSERNAME}
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
ExecStart=/usr/bin/taler-exchange-wirewatch -c /etc/taler-wire.conf
|
ExecStart=/usr/bin/taler-exchange-wirewatch -c /etc/taler/exchange-service-wire.conf
|
||||||
PrivateTmp=yes
|
PrivateTmp=yes
|
||||||
PrivateDevices=yes
|
PrivateDevices=yes
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
cat > "/etc/systemd/system/taler-exchange-transfer.service" <<EOF
|
cat >"/etc/systemd/system/taler-exchange-transfer.service" <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=GNU Taler payment system exchange transfer service
|
Description=GNU Taler payment system exchange transfer service
|
||||||
After=network.target
|
After=network.target
|
||||||
@ -197,13 +202,13 @@ EnvironmentFile=/etc/default/taler-exchange
|
|||||||
User=${_WIREUSERNAME}
|
User=${_WIREUSERNAME}
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
ExecStart=/usr/bin/taler-exchange-wirewatch -c /etc/taler-wire.conf
|
ExecStart=/usr/bin/taler-exchange-wirewatch -c /etc/taler/exchange-service-wire.conf
|
||||||
PrivateTmp=yes
|
PrivateTmp=yes
|
||||||
PrivateDevices=yes
|
PrivateDevices=yes
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
cat > "/etc/systemd/system/taler-exchange-aggregator.service" <<EOF
|
cat >"/etc/systemd/system/taler-exchange-aggregator.service" <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=GNU Taler payment system exchange aggregator service
|
Description=GNU Taler payment system exchange aggregator service
|
||||||
|
|
||||||
@ -212,7 +217,7 @@ EnvironmentFile=/etc/default/taler-exchange
|
|||||||
User=${_AGGRUSERNAME}
|
User=${_AGGRUSERNAME}
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
ExecStart=/usr/bin/taler-exchange-aggregator -c /etc/taler.conf
|
ExecStart=/usr/bin/taler-exchange-aggregator -c /etc/taler/exchange-service-default.conf
|
||||||
PrivateTmp=yes
|
PrivateTmp=yes
|
||||||
PrivateDevices=yes
|
PrivateDevices=yes
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
@ -231,28 +236,28 @@ EOF
|
|||||||
chmod 770 /var/lib/taler-exchange/tmp
|
chmod 770 /var/lib/taler-exchange/tmp
|
||||||
chmod +s /var/lib/taler-exchange/tmp
|
chmod +s /var/lib/taler-exchange/tmp
|
||||||
|
|
||||||
chown root:${_GROUPNAME} /etc/taler-secmod.conf
|
fixperm ${_WIREUSERNAME}:root 460 /etc/taler/exchange-wire-gateway.conf
|
||||||
chmod 640 /etc/taler-secmod.conf
|
fixperm root:${_DBGROUPNAME} 640 /etc/taler/exchange-db.conf
|
||||||
chown ${_WIREUSERNAME}:root /etc/taler-wire.conf
|
|
||||||
chmod 460 /etc/taler-wire.conf
|
|
||||||
chown root:${_DBGROUPNAME} /etc/taler-exchange-db.conf
|
|
||||||
chmod 640 /etc/taler-exchange-db.conf
|
|
||||||
chown ${_EUSERNAME}:${_GROUPNAME} /etc/taler-exchange.conf
|
|
||||||
chmod 460 /etc/taler-wire.conf
|
|
||||||
|
|
||||||
systemctl daemon-reload >/dev/null 2>&1 || true
|
systemctl daemon-reload >/dev/null 2>&1 || true
|
||||||
|
|
||||||
|
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
|
echo -n "Linking config files"
|
||||||
|
lncfg ${_EUSERNAME} /etc/taler/exchange-service-default.conf
|
||||||
|
lncfg ${_RSECUSERNAME} /etc/taler/exchange-service-default.conf
|
||||||
|
lncfg ${_ESECUSERNAME} /etc/taler/exchange-service-default.conf
|
||||||
|
lncfg ${_AGGRUSERNAME} /etc/taler/exchange-service-default.conf
|
||||||
|
lncfg ${_WIREUSERNAME} /etc/taler/exchange-service-wire.conf
|
||||||
|
echo " done"
|
||||||
|
|
||||||
# Cleaning
|
# Cleaning
|
||||||
echo "All done."
|
echo "All done."
|
||||||
;;
|
;;
|
||||||
|
|
||||||
abort-upgrade|abort-remove|abort-deconfigure)
|
abort-upgrade | abort-remove | abort-deconfigure) ;;
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "postinst called with unknown argument \`${1}'" >&2
|
echo "postinst called with unknown argument \`${1}'" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user