Revert "Update ensure-pass and sync-git for password manager changes"
This reverts commit c572a97607
.
This commit is contained in:
parent
c8591630ec
commit
2b4722bfe7
|
@ -1,31 +1,26 @@
|
|||
# Email
|
||||
EMAILS=(
|
||||
"e.litherlandsmith@proton.me"
|
||||
"e.litherlandsmith@icloud.com"
|
||||
"evie.litherland-smith@ukaea.uk"
|
||||
EMAIL="e.litherlandsmith@proton.me"
|
||||
secret-tool lookup email "$EMAIL" >/dev/null || (
|
||||
echo "Insert pass from protonmail-bridge"
|
||||
secret-tool store --label="Proton Mail mbsync" email "$EMAIL"
|
||||
)
|
||||
for EMAIL in "${EMAILS[@]}"; do
|
||||
LABEL="$EMAIL"
|
||||
secret-tool lookup email "$EMAIL" >/dev/null || (
|
||||
echo "Insert pass for $LABEL"
|
||||
secret-tool store --label="$LABEL" email "$EMAIL"
|
||||
)
|
||||
done
|
||||
|
||||
EMAIL="e.litherlandsmith@icloud.com"
|
||||
secret-tool lookup clear "$EMAIL"
|
||||
pass show identity/apple.com/mbsync | head -n1 | secret-tool store --label="iCloud mbsync" email "$EMAIL"
|
||||
|
||||
EMAIL="evie.litherland-smith@ukaea.uk"
|
||||
secret-tool clear email "$EMAIL"
|
||||
pass show work/microsoftonline.com | head -n1 | secret-tool store --label="Outlook mbsync" email "$EMAIL"
|
||||
|
||||
# Calendar
|
||||
URL="dav.xenia.me.uk"
|
||||
USER="pixelifytica"
|
||||
LABEL="$USER@$URL"
|
||||
secret-tool lookup url "$URL" user "$USER" >/dev/null || (
|
||||
echo "Insert pass for $LABEL"
|
||||
secret-tool store --label="$LABEL" url "$URL" user "$USER"
|
||||
)
|
||||
secret-tool clear url "$URL" user "$USER"
|
||||
pass show "server/xenia.me.uk/$URL" | head -n1 | secret-tool store --label="Personal calendar vdirsyncer" url "$URL" user "$USER"
|
||||
|
||||
# GitHub API token
|
||||
HOST="api.github.com"
|
||||
USER="pixelifytica^forge"
|
||||
LABEL="$USER@$HOST"
|
||||
secret-tool lookup host "$HOST" user "$USER" >/dev/null || (
|
||||
echo "Insert pass for $LABEL"
|
||||
secret-tool store --label="$LABEL" host "$HOST" user "$USER"
|
||||
)
|
||||
secret-tool clear host "$HOST" user "$USER"
|
||||
pass show "api/$HOST" | head -n1 | secret-tool store --label="Forge GitHub Token" host "$HOST" user "$USER"
|
||||
|
|
|
@ -14,11 +14,13 @@ fi
|
|||
|
||||
# Sync common directories, setting url to ensure it's up-to-date first
|
||||
SYNC_DIRS=(
|
||||
"$HOME/.password-store/"
|
||||
"$HOME/Documents/org/"
|
||||
"$HOME/Documents/library/"
|
||||
"$HOME/Documents/notebooks/"
|
||||
)
|
||||
SYNC_URLS=(
|
||||
"https://git.xenia.me.uk/pixelifytica/pass.git"
|
||||
"https://git.xenia.me.uk/pixelifytica/org.git"
|
||||
"https://git.xenia.me.uk/pixelifytica/library.git"
|
||||
"git@git.ccfe.ac.uk:elitherl/notebooks.git"
|
||||
|
|
Loading…
Reference in a new issue