From 617e286ba85f51a4f35dd605239c194cefd90124 Mon Sep 17 00:00:00 2001 From: Damien LACHAUME / PALO-IT Date: Wed, 22 Nov 2023 12:20:41 +0100 Subject: [PATCH] Standardize default values for signer environment file path and `DATA_STORES_DIRECTORY` --- docs/website/blog/2022-09-14-sqlite-stores.md | 2 +- docs/website/blog/2022-10-11-keys-certification-badge/index.md | 2 +- docs/website/root/manual/getting-started/run-signer-node.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/website/blog/2022-09-14-sqlite-stores.md b/docs/website/blog/2022-09-14-sqlite-stores.md index 6e42a50ddaf..780cbd9b901 100644 --- a/docs/website/blog/2022-09-14-sqlite-stores.md +++ b/docs/website/blog/2022-09-14-sqlite-stores.md @@ -46,7 +46,7 @@ $> ls -1F ../target/release/mithril-signer* ### Running the migration -The first step is to stop the running Mithril node if any. The `mithril-signer-migrate` executable can perform the migration automatically once you know where your actual JSON files are located. Have a look in your configuration file (default `/opt/mithril/mithril-signer/service.env`), check the value associated with the `DATA_STORES_DIRECTORY` key (default to `/opt/mithril/mithril-signer/stores`) and copy the path indicated here. Copy this path after the `--db-dir` option on the following command line: +The first step is to stop the running Mithril node if any. The `mithril-signer-migrate` executable can perform the migration automatically once you know where your actual JSON files are located. Have a look in your configuration file (default `/opt/mithril/mithril-signer.env`), check the value associated with the `DATA_STORES_DIRECTORY` key (default to `/opt/mithril/stores`) and copy the path indicated here. Copy this path after the `--db-dir` option on the following command line: ``` $> ./mithril-signer-migrate automatic --db-dir /paste/the/data/stores/directory/here diff --git a/docs/website/blog/2022-10-11-keys-certification-badge/index.md b/docs/website/blog/2022-10-11-keys-certification-badge/index.md index a60cbe610c2..71645502fe6 100644 --- a/docs/website/blog/2022-10-11-keys-certification-badge/index.md +++ b/docs/website/blog/2022-10-11-keys-certification-badge/index.md @@ -29,7 +29,7 @@ The data stores of the node need to be updated by running the following command: ```bash # The path to your data stores directory, which defaults to: -DATA_STORES_DIRECTORY=/opt/mithril/mithril-signer/stores +DATA_STORES_DIRECTORY=/opt/mithril/stores # Run this command to upgrade your stores: sqlite3 ${DATA_STORES_DIRECTORY}/signer.sqlite3 "UPDATE protocol_initializer SET value = json_object('stm_initializer', json(value), 'kes_signature', null) WHERE json_extract(value, '$.stm_initializer') IS NULL;" diff --git a/docs/website/root/manual/getting-started/run-signer-node.md b/docs/website/root/manual/getting-started/run-signer-node.md index c4bbf66fe85..a915f40e4ea 100644 --- a/docs/website/root/manual/getting-started/run-signer-node.md +++ b/docs/website/root/manual/getting-started/run-signer-node.md @@ -224,7 +224,7 @@ sudo mv mithril-signer /opt/mithril * `User=cardano`: Replace this value with the correct user. We assume that the user used to run the **Cardano node** is `cardano`. The **Mithril signer** must imperatively run with the same user. -* In the `/opt/mithril/mithril-signer/service.env` env file: +* In the `/opt/mithril/mithril-signer.env` env file: * `KES_SECRET_KEY_PATH=/cardano/keys/kes.skey`: replace `/cardano/keys/kes.skey` with the path to your Cardano `KES secret key` file * `OPERATIONAL_CERTIFICATE_PATH=/cardano/cert/opcert.cert`: replace `/cardano/cert/opcert.cert` with the path to your Cardano `operational certificate` file * `DB_DIRECTORY=/cardano/db`: replace `/cardano/db` with the path to the database folder of the **Cardano node** (the one in `--database-path`)