summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2022-08-25 10:34:09 +0200
committerMS <ms@taler.net>2022-08-25 10:34:09 +0200
commit3f4a1c3b6992723573be85f575735aa51b683366 (patch)
tree42456f7e45afc07c3213f9b1e843f6fa6de9c8a1
parent383e4f854f2cd392a51fde79913f7e22d1c8fc11 (diff)
downloaddeployment-3f4a1c3b6992723573be85f575735aa51b683366.tar.gz
deployment-3f4a1c3b6992723573be85f575735aa51b683366.tar.bz2
deployment-3f4a1c3b6992723573be85f575735aa51b683366.zip
workaround demo sites '-c' bug
-rwxr-xr-xbin/taler-gv11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/taler-gv b/bin/taler-gv
index 106fb9c..4b268ea 100755
--- a/bin/taler-gv
+++ b/bin/taler-gv
@@ -1199,22 +1199,27 @@ def prepare(postgres_db_name):
with open(TALER_UNIT_FILES_DIR / "taler-local-nexus.env", "w") as nexus_env:
nexus_env.write(f"LIBEUFIN_NEXUS_DB_CONNECTION=jdbc:sqlite:{NEXUS_DB_FILE}\n")
+ # FIXME: demo sites ignore the '-c' flag now. They access ~/.config/taler.conf
+ # which is a symlink to ~/config/taler.conf
with open(TALER_UNIT_FILES_DIR / "taler-local-donations.service", "w") as donations_unit:
donations_unit.write(unit_file_content(
description = "Donation Website that accepts Taler payments.",
- cmd = f"{TALER_PREFIX}/bin/taler-merchant-demos donations -c {CFG_OUTDIR / 'taler.conf'}",
+ cmd = f"{TALER_PREFIX}/bin/taler-merchant-demos donations",
+ # cmd = f"{TALER_PREFIX}/bin/taler-merchant-demos donations -c {CFG_OUTDIR / 'taler.conf'}",
env = TALER_UNIT_FILES_DIR / "taler-local-frontends.env"
))
with open(TALER_UNIT_FILES_DIR / "taler-local-blog.service", "w") as blog_unit:
blog_unit.write(unit_file_content(
description = "Blog that accepts Taler payments.",
- cmd = f"{TALER_PREFIX}/bin/taler-merchant-demos blog -c {CFG_OUTDIR / 'taler.conf'}",
+ cmd = f"{TALER_PREFIX}/bin/taler-merchant-demos blog",
+ # cmd = f"{TALER_PREFIX}/bin/taler-merchant-demos blog -c {CFG_OUTDIR / 'taler.conf'}",
env = TALER_UNIT_FILES_DIR / "taler-local-frontends.env"
))
with open(TALER_UNIT_FILES_DIR / "taler-local-survey.service", "w") as survey_unit:
survey_unit.write(unit_file_content(
description = "Survey Website awarding tips via Taler.",
- cmd = f"{TALER_PREFIX}/bin/taler-merchant-demos survey -c {CFG_OUTDIR / 'taler.conf'}",
+ cmd = f"{TALER_PREFIX}/bin/taler-merchant-demos survey",
+ # cmd = f"{TALER_PREFIX}/bin/taler-merchant-demos survey -c {CFG_OUTDIR / 'taler.conf'}",
env = TALER_UNIT_FILES_DIR / "taler-local-frontends.env"
))
with open(TALER_UNIT_FILES_DIR / "taler-local-landing.service", "w") as landing_unit: