Skip to content

Commit

Permalink
refactor: 💡 add find replace config.toml instructions for update docu…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
heldrida committed Sep 12, 2023
1 parent ad43407 commit b8fa10c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions references/Lightning CLI/update-cli-from-source-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ tags:
import Author from '@site/src/components/Author';
import SetUserPathInConfigToml from '../../guides/partials/_set-user-path-config-toml.mdx';
import NoteExecStartFlagCConfigPath from '../../guides/partials/_note_execstart-flag-c-config-path.mdx';
import FindAndReplaceConfigWithUserPaths from '../../guides/partials/_find-and-replace-config-with-user-paths.mdx';

:::tip
Although the step-by-step instructions described here are simple to follow, this process is available as an automated script. To use it execute the following command in your server terminal and follow the instructions:
Expand Down Expand Up @@ -166,6 +167,10 @@ Depending on how you control the system, this might need **sudo**.
sudo rm -rf ~/.lightning/data
```

## Update the `config.toml` with user home path

<FindAndReplaceConfigWithUserPaths />

## Restart the service

Once the cargo build process is completed, you have to restart the service. We're assuming you are using non-root user as [recommended](/docs/node/install#create-a-user), you won't use **sudo** to start the service. The command will look as follows:
Expand Down

0 comments on commit b8fa10c

Please sign in to comment.