setup better paths, use Debian-specific systemd clean up logic instead of hacking around manually, improve README
This commit is contained in:
parent
5bc3a5f9e2
commit
53abae7403
5
debian/etc/taler.conf
vendored
5
debian/etc/taler.conf
vendored
@ -0,0 +1,5 @@
|
|||||||
|
[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/
|
20
debian/taler-exchange.README.Debian
vendored
20
debian/taler-exchange.README.Debian
vendored
@ -1,16 +1,22 @@
|
|||||||
taler-exchange
|
taler-exchange
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
By default, the Taler exchange will start automatically when the system is booted.
|
Note that the configuration installed in /etc/taler.conf is incomplete and
|
||||||
If you prefere to start it manually when you use it, change its configuration
|
that Debian cannot launch an exchange with this minimal template. You must
|
||||||
with:
|
setup the currency, denominations and bank account access details before
|
||||||
|
launching the Taler exchange can possibly succeed.
|
||||||
# dpkg-reconfigure -plow taler-exchange
|
|
||||||
|
|
||||||
In order to start, stop or restart manually the server, use:
|
In order to start, stop or restart manually the server, use:
|
||||||
|
|
||||||
# /etc/init.d/taler-exchange
|
# systemctl start taler-exchange
|
||||||
|
# systemctl stop taler-exchange
|
||||||
|
# systemctl restart taler-exchange
|
||||||
|
|
||||||
with the parameter start, stop or restart.
|
To permanently the exchange whenever the system boots, use:
|
||||||
|
|
||||||
|
# systemctl enable taler-exchange
|
||||||
|
|
||||||
|
None of these are done by the Debian package because we cannot provide the
|
||||||
|
required complete configuration details.
|
||||||
|
|
||||||
-- Christian Grothoff <grothoff@gnu.org> Mon 28 Dec 2020 11:37:14 AM CET
|
-- Christian Grothoff <grothoff@gnu.org> Mon 28 Dec 2020 11:37:14 AM CET
|
||||||
|
5
debian/taler-exchange.postinst
vendored
5
debian/taler-exchange.postinst
vendored
@ -179,6 +179,11 @@ EOF
|
|||||||
cp -f "${CONFIG_NEW}" "${CONFIG_FILE}"
|
cp -f "${CONFIG_NEW}" "${CONFIG_FILE}"
|
||||||
echo " done."
|
echo " done."
|
||||||
|
|
||||||
|
mkdir -p /var/lib/taler-exchange/tmp
|
||||||
|
chown root:taler /var/lib/taler-exchange/tmp
|
||||||
|
chmod 770 /var/lib/taler-exchange/tmp
|
||||||
|
chmod +s /var/lib/taler-exchange/tmp
|
||||||
|
|
||||||
# Cleaning
|
# Cleaning
|
||||||
rm -f "${CONFIG_NEW}"
|
rm -f "${CONFIG_NEW}"
|
||||||
echo "All done."
|
echo "All done."
|
||||||
|
6
debian/taler-exchange.postrm
vendored
6
debian/taler-exchange.postrm
vendored
@ -65,12 +65,6 @@ case "${1}" in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf /var/log/taler/ /var/lib/taler /etc/default/taler
|
rm -rf /var/log/taler/ /var/lib/taler /etc/default/taler
|
||||||
for X in httpd helper-rsa helper-eddsa wirewatch transfer
|
|
||||||
do
|
|
||||||
rm -f /etc/systemd/system/taler-exchange-${X}.service
|
|
||||||
done
|
|
||||||
systemctl daemon-reload
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
|
6
debian/taler-exchange.postrm.debhelper
vendored
Normal file
6
debian/taler-exchange.postrm.debhelper
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Automatically added by dh_installdebconf/13.3
|
||||||
|
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
db_purge
|
||||||
|
fi
|
||||||
|
# End automatically added section
|
Loading…
Reference in New Issue
Block a user