Update ensure-pass.sh to add GitHub API token to secret store
Rename a few variables for consistency Remove spotifyd credentials since I don't use it anymore
This commit is contained in:
parent
37d2a39116
commit
ea8e3e2de6
|
@ -1,22 +1,22 @@
|
||||||
# Email
|
# Email
|
||||||
ADDRESS="e.litherlandsmith@proton.me"
|
EMAIL="e.litherlandsmith@proton.me"
|
||||||
secret-tool lookup email "$ADDRESS" >/dev/null || (
|
secret-tool lookup email "$EMAIL" >/dev/null || (
|
||||||
echo "Insert pass from protonmail-bridge"
|
echo "Insert pass from protonmail-bridge"
|
||||||
secret-tool store --label="Proton Mail mbsync" email "$ADDRESS"
|
secret-tool store --label="Proton Mail mbsync" email "$EMAIL"
|
||||||
)
|
)
|
||||||
|
|
||||||
ADDRESS="e.litherlandsmith@icloud.com"
|
EMAIL="e.litherlandsmith@icloud.com"
|
||||||
secret-tool lookup email "$ADDRESS" >/dev/null || (
|
secret-tool lookup email "$EMAIL" >/dev/null || (
|
||||||
pass show identity/apple.com/mbsync |
|
pass show identity/apple.com/mbsync |
|
||||||
head -n1 |
|
head -n1 |
|
||||||
secret-tool store --label="iCloud mbsync" email "$ADDRESS"
|
secret-tool store --label="iCloud mbsync" email "$EMAIL"
|
||||||
)
|
)
|
||||||
|
|
||||||
ADDRESS="evie.litherland-smith@ukaea.uk"
|
EMAIL="evie.litherland-smith@ukaea.uk"
|
||||||
secret-tool lookup email "$ADDRESS" >/dev/null || (
|
secret-tool lookup email "$EMAIL" >/dev/null || (
|
||||||
pass show work/microsoftonline.com |
|
pass show work/microsoftonline.com |
|
||||||
head -n1 |
|
head -n1 |
|
||||||
secret-tool store --label="Outlook mbsync" email "$ADDRESS"
|
secret-tool store --label="Outlook mbsync" email "$EMAIL"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Calendar
|
# Calendar
|
||||||
|
@ -28,10 +28,11 @@ secret-tool lookup url "$URL" user "$USER" >/dev/null || (
|
||||||
secret-tool store --label="Personal calendar vdirsyncer" url "$URL" user "$USER"
|
secret-tool store --label="Personal calendar vdirsyncer" url "$URL" user "$USER"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Spotify
|
# GitHub API token
|
||||||
# See https://docs.spotifyd.rs/config/File.html for attribute details
|
HOST="api.github.com"
|
||||||
secret-tool lookup application rust-keyring service spotifyd username pixelifytica >/dev/null || (
|
USER="pixelifytica^forge"
|
||||||
pass show media/spotify.com |
|
secret-tool lookup host "$HOST" user "$USER" >/dev/null || (
|
||||||
|
pass show "api/$HOST" |
|
||||||
head -n1 |
|
head -n1 |
|
||||||
secret-tool store --label="Spotify" application rust-keyring service spotifyd username pixelifytica
|
secret-tool store --label="Forge GitHub Token" host "$HOST" user "$USER"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue