Skip to content

Commit 8f02a53

Browse files
chore: update docs
- add Linux updater script
1 parent 48e1755 commit 8f02a53

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

Writerside/topics/Updating-Memos.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,45 @@ strongly discouraged for anything other than a **Patch** version release.
2323
2424
### Script-aided procedure {collapsible="true" default-state="collapsed"}
2525

26-
#### Windows
27-
28-
For convenience, there's an automatic server updater-script with auto-backup
26+
For convenience, there are server updater-scripts with auto-backup
2927
capabilities.
3028

29+
#### Windows
30+
3131
Open PowerShell and run the following command:
3232

3333
```Shell
3434
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/memospot/memospot/main/memos-server-updater.ps1'))
3535
```
3636

3737
> You can check the script source
38-
> [here.](https://raw.githubusercontent.com/memospot/memospot/main/memos-server-updater.ps1)
39-
> {style=note}
38+
> [here.](https://github.com/memospot/memospot/blob/main/memos-server-updater.ps1)
39+
>
4040
4141
> You must run PowerShell as Admin if you are using Memospot `MSI` installers,
4242
> as they do a system-wide installation.
4343
>
4444
> This is **not** necessary when using the NSIS/exe installer,
4545
> as it only installs the application for the current user.
4646
> {style=warning}
47+
>
48+
49+
#### Linux/macOS
50+
51+
Open a terminal and run the following command:
52+
53+
```Shell
54+
curl -fsSL https://raw.githubusercontent.com/memospot/memospot/main/memos-server-updater.sh | sudo bash
55+
```
56+
57+
> You can check the script source
58+
> [here.](https://github.com/memospot/memospot/blob/main/memos-server-updater.sh)
59+
>
60+
61+
> You must run the script with sudo, as the Memospot `deb` package installs Memos to `/usr/bin/`.
62+
> {style=warning}
63+
64+
The script can take an optional argument to specify a tag to update to. E.g. `… bash -s v0.21.0`.
4765

4866
### Manual procedure {collapsible="true" default-state="collapsed"}
4967

0 commit comments

Comments
 (0)