22title : Updating Dojo
33---
44
5- import { Steps } from ' @astrojs/starlight/components' ;
5+ import { Steps , Code } from ' @astrojs/starlight/components' ;
66import ImageZoom from ' starlight-image-zoom/components/ImageZoom.astro'
7+ import { DOJO_VERSION } from " ../../../const" ;
78
89<ImageZoom />
910
@@ -13,7 +14,7 @@ If you are unsure what Dojo version you are on, login to your DMT and displayed
1314
1415___
1516
16- ** The following guide will update you to the latest Dojo version** : ` v1.27.0 `
17+ ** The following guide will update you to the latest Dojo version** : < code > { DOJO_VERSION } </ code >
1718
1819All commands are to be copy and pasted into the terminal of your Dojo, then press ` ENTER ` .
1920
@@ -66,19 +67,13 @@ After your system has rebooted, log back in using your Dojo user credentials the
6667 cd ~ /
6768 ```
68695 . Download over Tor the latest version of Dojo from GitHub
69- ``` sh
70- torsocks wget -O samourai-dojo-1.27.0.zip https://github.com/Dojo-Open-Source-Project/samourai-dojo/archive/refs/tags/v1.27.0.zip
71- ```
70+ <Code code = { ` torsocks wget -O samourai-dojo-${DOJO_VERSION }.zip https://github.com/Dojo-Open-Source-Project/samourai-dojo/archive/refs/tags/v${DOJO_VERSION }.zip ` } lang = " sh" />
72716 . Download over Tor the Dojo fingerprints file and PGP signed fingerprints file from GitHub
73- ``` sh
74- torsocks wget https://github.com/Dojo-Open-Source-Project/samourai-dojo/releases/download/v1.27.0/samourai-dojo-1.27.0-fingerprints.txt && torsocks wget https://github.com/Dojo-Open-Source-Project/samourai-dojo/releases/download/v1.27.0/samourai-dojo-1.27.0-fingerprints.txt.sig
75- ```
72+ <Code code = { ` torsocks wget https://github.com/Dojo-Open-Source-Project/samourai-dojo/releases/download/v${DOJO_VERSION }/samourai-dojo-${DOJO_VERSION }-fingerprints.txt && torsocks wget https://github.com/Dojo-Open-Source-Project/samourai-dojo/releases/download/v${DOJO_VERSION }/samourai-dojo-${DOJO_VERSION }-fingerprints.txt.sig ` } lang = " sh" />
7673</Steps >
7774
7875### Verify the PGP signed fingerprints file:
79- ``` sh
80- gpg --verify samourai-dojo-1.27.0-fingerprints.txt.sig
81- ```
76+ <Code code = { ` gpg --verify samourai-dojo-${DOJO_VERSION }-fingerprints.txt.sig ` } lang = " sh" />
8277
8378### ✅ Successful result:
8479Successful verification is confirmed if the following is displayed on screen:
@@ -99,44 +94,34 @@ If you observe a different result to the above, **stop immediately**. Do not con
9994## Verify SHA256 fingerprints
10095
10196Verify the SHA256 fingerprints of the downloaded file:
102- ``` sh
103- sha256sum --check samourai-dojo-1.27.0-fingerprints.txt --ignore-missing
104- ```
97+ <Code code = { ` sha256sum --check samourai-dojo-${DOJO_VERSION }-fingerprints.txt --ignore-missing ` } lang = " sh" />
10598
10699### ✅ Successful result
107100Successful verification is confirmed if the following is displayed on screen:
108101
109- ```
110- samourai-dojo-1.27.0.zip: OK
111- ```
102+ <Code code = { ` samourai-dojo-${DOJO_VERSION }.zip: OK ` } />
112103
113104### ❌ Unsuccessful result
114105
115106Unsuccessful verification might be displayed on screen:
116107
117- `` `
118- samourai-dojo-1.27.0 .zip: FAILED
108+ < Code code = { `
109+ samourai-dojo-${ DOJO_VERSION } .zip: FAILED
119110sha256sum: WARNING: 1 computed checksum did NOT match
120- sha256sum: samourai-dojo-1.27.0 -fingerprints.txt: no file was verified
121- ```
111+ sha256sum: samourai-dojo-${ DOJO_VERSION } -fingerprints.txt: no file was verified
112+ ` } />
122113
123114If the hashes do not match, ** stop immediately** . Do not continue following this guide. Do not install Dojo. Seek advice from a community member.
124115
125116## Unpack files and upgrade Dojo
126117
127118<Steps >
1281191 . Unzip the downloaded file
129- ``` sh
130- unzip samourai-dojo-1.27.0.zip -d .
131- ```
120+ <Code code = { ` unzip samourai-dojo-${DOJO_VERSION }.zip -d . ` } lang = " sh" />
1321212 . Copy the file contents into the Dojo directory
133- ``` sh
134- cp -a samourai-dojo-1.27.0/. dojo-app/
135- ```
122+ <Code code = { ` cp -a samourai-dojo-${DOJO_VERSION }/. dojo-app/ ` } lang = " sh" />
1361233 . Remove the files which are no longer required
137- ``` sh
138- rm -r samourai-dojo-1.27.0 && rm samourai-dojo-1.27.0.zip && rm samourai-dojo-1.27.0-fingerprints.txt && rm samourai-dojo-1.27.0-fingerprints.txt.sig && rm E53AD419B242822F19E23C6D3033D463D6E544F6
139- ```
124+ <Code code = { ` rm -r samourai-dojo-${DOJO_VERSION } && rm samourai-dojo-${DOJO_VERSION }.zip && rm samourai-dojo-${DOJO_VERSION }-fingerprints.txt && rm samourai-dojo-${DOJO_VERSION }-fingerprints.txt.sig && rm E53AD419B242822F19E23C6D3033D463D6E544F6 ` } lang = " sh" />
1401254 . Navigate to the Dojo script directory
141126 ``` sh
142127 cd ~ /dojo-app/docker/my-dojo
0 commit comments