|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
A small tool for storing passwords locally with git sync |
|
|
|
A small tool for storing passwords locally with git sync |
|
|
|
|
|
|
|
|
|
|
|
## MPS |
|
|
|
## Installation |
|
|
|
1. Clone MPS repo: |
|
|
|
1. Clone MPS repo: |
|
|
|
``` |
|
|
|
``` |
|
|
|
git clone git@code.corpglory.net:corpglory/mps.git |
|
|
|
git clone git@code.corpglory.net:corpglory/mps.git |
|
|
@ -14,18 +14,33 @@ cd mps |
|
|
|
cargo build --release |
|
|
|
cargo build --release |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
3. Add your mps build to PATH in your ~/.zshenv |
|
|
|
3. Run init |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
export PATH=$PATH:"<mps_git_repo_path>/target/release" |
|
|
|
mps init |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4. Add your storage under git |
|
|
|
|
|
|
|
```bash |
|
|
|
|
|
|
|
cd storage |
|
|
|
|
|
|
|
git init |
|
|
|
|
|
|
|
... # other git initialization process |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
## Intilization |
|
|
|
### Intilization with exisitng storage-db repo |
|
|
|
|
|
|
|
|
|
|
|
1. Create empty repository for storing your passwords on gitlab or somewhere you prefer |
|
|
|
1. Create empty repository for storing your passwords on gitlab or somewhere you prefer |
|
|
|
2. Create dir `mps`: `mkdir ~/.mps` |
|
|
|
2. Clone to your home folder `~/.mps/storage`: `git clone <your_storage_url> storage` |
|
|
|
3. Clone to your home folder `~/.mps/storage`: `git clone <your_storage_url> storage` |
|
|
|
|
|
|
|
3. Export varable `$MPS_HOME`: `export MPS_HOME="/home/<your_username>/.mps"` in your `~/.zshenv` |
|
|
|
#### Exporting `MPS_HOME` |
|
|
|
4. Run `mps init` |
|
|
|
You can export variable `$MPS_HOME` to init storage for example in your home directory: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`export MPS_HOME="/home/<your_username>/.mps"` in your `~/.zshenv` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
now `mps` will try to get storage from `$MPS_HOME/storage` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Add your mps build to PATH in your ~/.zshenv |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
export PATH=$PATH:"<mps_git_repo_path>/target/release" |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|