Skip to content

Commit ffafe75

Browse files
authored
Update README.md: COTP_DB_PATH env variable
1 parent e0fe9e8 commit ffafe75

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ It will convert the database in a json format readable by cotp.
130130
To terminate the import:
131131
`cotp import --authy --path path/to/converted_database.json`
132132

133+
# Configuration
134+
135+
By default database is located in `$HOME/.cotp/db.cotp`. If you want to use a different path, you can use `COTP_DB_PATH` environment variable.
136+
Here is an example of how to do this in bash:
137+
```bash
138+
$ COTP_DB_PATH=/home/user/.local/custom-folder/db.cotp /usr/bin/cotp
139+
```
140+
133141
# Planned features
134142

135143
Currently, there is not any planned feature. If you need something new that could improve the software feel free to open

0 commit comments

Comments
 (0)