From 34acac7bfc261fe653dc4928c261de9423456b00 Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Fri, 3 Apr 2020 15:02:11 +0200 Subject: [PATCH] Install sql files --- eole.mk | 4 ++++ tmpl/risotto.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/eole.mk b/eole.mk index 4f936ba..baa7ef5 100644 --- a/eole.mk +++ b/eole.mk @@ -88,6 +88,10 @@ sql_conf_gen_DATA_DIR := $(eole_DIR)/applications/gen sql_conf_passwords_DATA_DIR := $(eole_DIR)/applications/passwords sql_conf_updates_DATA_DIR := $(eole_DIR)/applications/updates/$(SOURCE) +db_DIR := $(eole_DIR)/db +db_gen_DATA_DIR := $(eole_DIR)/db/$(SOURCE)/gen +db_updates_DATA_DIR := $(eole_DIR)/db/$(SOURCE)/updates + # Certifs certs_DATA_DIR := $(eole_DIR)/certs diff --git a/tmpl/risotto.yml b/tmpl/risotto.yml index 76dff6e..6d91aed 100644 --- a/tmpl/risotto.yml +++ b/tmpl/risotto.yml @@ -5,6 +5,6 @@ dbport: 5432 dbtype: postgres dbname: %%getVar('risotto_main_dbname') template: 'postgres' -sqlscripts: ['/usr/share/eole/db/risotto/gen/create_tables.sql'] +sqlscripts: ['/usr/share/eole/db/eole-risotto/gen/create_tables.sql'] pwd_files: - {'file': '/etc/risotto/risotto.conf', 'pattern': 'RISOTTO_DB_PASSWORD='}