@@ -121,10 +121,16 @@ An attacker would not be able to do much within this user's permission settings.
121
121
$ sudo su - btcrpcexplorer
122
122
```
123
123
124
+ * Set a temporary version environment variable to the installation
125
+
126
+ ``` sh
127
+ $ VERSION=3.4.0
128
+ ```
129
+
124
130
* Download the source code directly from GitHub and install all dependencies using the Node Package Manager (NPM).
125
131
126
132
``` sh
127
- $ git clone --branch v3.3.0 https://github.com/janoside/btc-rpc-explorer.git
133
+ $ git clone --branch v $VERSION https://github.com/janoside/btc-rpc-explorer.git
128
134
$ cd btc-rpc-explorer
129
135
$ npm install
130
136
```
@@ -280,14 +286,14 @@ In order to do that, we create a systemd unit that starts the service on boot di
280
286
` ` ` sh
281
287
$ sudo nano /etc/systemd/system/bitcoind.service
282
288
` ` `
283
-
289
+
284
290
` ` ` ini
285
291
[Unit]
286
292
Description=Bitcoin daemon
287
293
After=network.target
288
294
Wants=btcrpcexplorer.service
289
295
` ` `
290
-
296
+
291
297
* Reload the systemd manager configuration to recreate the entire dependency tree
292
298
293
299
` ` ` sh
@@ -342,14 +348,20 @@ Updating to a [new release](https://github.com/janoside/btc-rpc-explorer/release
342
348
$ sudo su - btcrpcexplorer
343
349
` ` `
344
350
345
- * Fetch the latest GitHub repository information, display the release tags (use the latest ` v3.3.0` in this example), and update:
351
+ * Set a temporary version environment variable to the installation
352
+
353
+ ` ` ` sh
354
+ $ VERSION=3.4.0
355
+ ` ` `
356
+
357
+ * Fetch the latest GitHub repository information, display the release tags (use the latest in this example), and update:
346
358
347
359
` ` ` sh
348
360
$ cd /home/btcrpcexplorer/btc-rpc-explorer
349
361
$ git fetch
350
362
$ git reset --hard HEAD
351
363
$ git tag
352
- $ git checkout v3.3.0
364
+ $ git checkout v $VERSION
353
365
$ npm install
354
366
$ exit
355
367
` ` `
@@ -365,4 +377,3 @@ Updating to a [new release](https://github.com/janoside/btc-rpc-explorer/release
365
377
---
366
378
367
379
Next: [Lightning >> ](../lightning/index.md)
368
-
0 commit comments