Skip to content

Commit 81eeb6d

Browse files
committed
Update 'run signer guide' doc
1 parent 3955689 commit 81eeb6d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/root/manual/getting-started/run-signer-node.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Replace this value with the correct user. We assume that the user used to run th
173173
* `DB_DIRECTORY=/cardano/db`: replace `/cardano/db` with the path to the database folder of the **Cardano Node** (the one in `--database-path`)
174174
* `CARDANO_NODE_SOCKET_PATH=/cardano/ipc/node.socket`: replace with the path to the IPC file (`CARDANO_NODE_SOCKET_PATH` env var)
175175
* `CARDANO_CLI_PATH=/app/bin/cardano-cli`: replace with the path to the `cardano-cli` executable
176-
* `DATA_STORES_DIRECTORY=/opt/mithril/mithril-signer/stores`: replace with the path to a folder where the **Mithril Signer** will store its data (`/opt/mithril/mithril-signer/stores` e.g.)
176+
* `DATA_STORES_DIRECTORY=/opt/mithril/stores`: replace with the path to a folder where the **Mithril Signer** will store its data (`/opt/mithril/stores` e.g.)
177177
* `STORE_RETENTION_LIMIT`: if set, this will limit the number of records in some internal stores (5 is a good fit).
178178

179179
* :boom: **Experimental mode**: in the `/opt/mithril/mithril-signer/service.env` env file:
@@ -182,7 +182,7 @@ Replace this value with the correct user. We assume that the user used to run th
182182
* `DB_DIRECTORY=/cardano/db`: replace `/cardano/db` with the path to the database folder of the **Cardano Node** (the one in `--database-path`)
183183
* `CARDANO_NODE_SOCKET_PATH=/cardano/ipc/node.socket`: replace with the path to the IPC file (`CARDANO_NODE_SOCKET_PATH` env var)
184184
* `CARDANO_CLI_PATH=/app/bin/cardano-cli`: replace with the path to the `cardano-cli` executable
185-
* `DATA_STORES_DIRECTORY=/opt/mithril/mithril-signer/stores`: replace with the path to a folder where the **Mithril Signer** will store its data (`/opt/mithril/mithril-signer/stores` e.g.)
185+
* `DATA_STORES_DIRECTORY=/opt/mithril/stores`: replace with the path to a folder where the **Mithril Signer** will store its data (`/opt/mithril/stores` e.g.)
186186
* `STORE_RETENTION_LIMIT`: if set, this will limit the number of records in some internal stores (5 is a good fit).
187187

188188
:::
@@ -192,23 +192,23 @@ First create an env file that will be used by the service:
192192
* **Stable mode**:
193193

194194
```bash
195-
sudo cat > /opt/mithril/mithril-signer.env << EOF
195+
sudo bash -c 'cat > /opt/mithril/mithril-signer.env << EOF
196196
PARTY_ID=**YOUR_POOL_ID_BECH32**
197197
NETWORK=**YOUR_TEST_NETWORK**
198198
AGGREGATOR_ENDPOINT=https://aggregator.api.mithril.network/aggregator
199199
RUN_INTERVAL=60000
200200
DB_DIRECTORY=/cardano/db
201201
CARDANO_NODE_SOCKET_PATH=/cardano/ipc/node.socket
202202
CARDANO_CLI_PATH=/app/bin/cardano-cli
203-
DATA_STORES_DIRECTORY=/opt/mithril/mithril-signer/stores
203+
DATA_STORES_DIRECTORY=/opt/mithril/stores
204204
STORE_RETENTION_LIMIT=5
205-
EOF
205+
EOF'
206206
```
207207

208208
* :boom: **Experimental mode**:
209209

210210
```bash
211-
sudo cat > /opt/mithril/mithril-signer.env << EOF
211+
sudo bash -c 'cat > /opt/mithril/mithril-signer.env << EOF
212212
KES_SECRET_KEY_PATH=**YOUR_KES_SECRET_KEY_PATH**
213213
OPERATIONAL_CERTIFICATE_PATH=**YOUR_OPERATIONAL_CERTIFICATE_PATH**
214214
NETWORK=**YOUR_TEST_NETWORK**
@@ -217,15 +217,15 @@ RUN_INTERVAL=60000
217217
DB_DIRECTORY=/cardano/db
218218
CARDANO_NODE_SOCKET_PATH=/cardano/ipc/node.socket
219219
CARDANO_CLI_PATH=/app/bin/cardano-cli
220-
DATA_STORES_DIRECTORY=/opt/mithril/mithril-signer/stores
220+
DATA_STORES_DIRECTORY=/opt/mithril/stores
221221
STORE_RETENTION_LIMIT=5
222-
EOF
222+
EOF'
223223
```
224224

225225
Then we will create a `/etc/systemd/system/mithril-signer.service` description file for our service
226226

227227
```bash
228-
sudo cat > /etc/systemd/system/mithril-signer.service << EOF
228+
sudo bash -c 'cat > /etc/systemd/system/mithril-signer.service << EOF
229229
[Unit]
230230
Description=Mithril Signer service
231231
StartLimitIntervalSec=0
@@ -240,7 +240,7 @@ ExecStart=/opt/mithril/mithril-signer -vvv
240240
241241
[Install]
242242
WantedBy=multi-user.target
243-
EOF
243+
EOF'
244244
```
245245

246246
Reload the service configuration (Optional)

0 commit comments

Comments
 (0)