12 lines
435 B
Bash
Executable File
12 lines
435 B
Bash
Executable File
#! /bin/bash
|
|
|
|
TOWER=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Scarif: Tower" 2>&1)
|
|
TOWERUN=$(echo "$TOWER" | grep -Po "(?<=login: )\w+")
|
|
TOWERPW=$(echo "$TOWER" | grep -Po "(?<=pass : ).+(?=\")")
|
|
|
|
joplin config sync.target 5
|
|
joplin config sync.5.path https://tower.scarif.space/remote.php/dav/files/chris/Joplin
|
|
joplin config sync.5.username "$TOWERUN"
|
|
joplin config sync.5.password "$TOWERPW"
|
|
joplin sync
|