-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* autopay patches * patch tests * migrate autopay patch
- Loading branch information
1 parent
3f6252a
commit 10c81d5
Showing
9 changed files
with
138 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# 0L Configuration Jubilee | ||
|
||
## backup your files | ||
|
||
``` | ||
cd ~ | ||
rsync -av --exclude db/ ~/.0L ~/0L_backup_20210607 | ||
``` | ||
|
||
## Create a new user on host | ||
|
||
Especially important for those running as root. | ||
|
||
Make this a restricted user: do not give the user `sudo`. | ||
|
||
For a user with the name `val`: | ||
``` | ||
sudo useradd -m val | ||
``` | ||
|
||
## Switch into new user | ||
|
||
``` | ||
su val | ||
``` | ||
|
||
## Add ~/bin to PATH | ||
|
||
`~/bin` will be where your binaries will live. You need to add this to the "search path" to execute commands easily. | ||
|
||
``` | ||
# add to ./bashrc | ||
PATH=~/bin:$PATH | ||
``` | ||
|
||
Do this: https://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path | ||
|
||
|
||
TODO: dboreham, tell us what to do. | ||
|
||
|
||
### Add your ssh pubkey to the new user | ||
|
||
Include your public key in .ssh/authorized_key so you can access the user directly from ssh. | ||
|
||
``` | ||
nano /home/val/.ssh/authorized_keys | ||
``` | ||
|
||
alternatively copy the file from the /root/.ssh/authorized_keys | ||
|
||
``` | ||
cp /root/.ssh/authorized_keys /home/val/.ssh/ | ||
``` | ||
|
||
|
||
## Fetch latest code | ||
|
||
``` | ||
git clone https://github.com/OLSF/libra.git --branch main --depth 1 --single-branch | ||
``` | ||
|
||
## Build binaries | ||
``` | ||
cd libra | ||
make bins install | ||
``` | ||
|
||
## Create Autopay File | ||
|
||
For your autopay instructions to be preserved, an `autopay_batch.json` file should exist in your intended config folder (e.g. `~/.0L/autopay_batch.json`). | ||
|
||
Here's a blank example: https://github.com/LOL-LLC/donations-record/blob/main/clean.autopay_batch.json | ||
|
||
## Recreate config files | ||
|
||
Follow these instructions to refresh your node's configurations. This way they will be up to date with the configuration format that other validators have. | ||
|
||
Do this first: [Resetting Val Configs](resetting_val_configs.md) | ||
|
||
|
||
## Restart your services as the new user | ||
|
||
Stop your node, miner, monitor and restart | ||
|
||
``` | ||
# in previous user | ||
ol mgmt --stop all | ||
# in new user | ||
ol start | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters