Update scripts

This commit is contained in:
2026-03-01 11:48:33 +00:00
parent dbc4e531a0
commit 7c6d1a0f76
3 changed files with 5 additions and 37 deletions

View File

@@ -1,23 +1,10 @@
#! zsh
# 1. Fetch credentials (Enpass logic remains the same)
TOWER=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Scarif: Tower" 2>&1)
TOWERUN=$(echo "$TOWER" | grep -Po "(?<=login: )\w+")
wait_for_copy() {
timeout 60s wl-paste --watch sh -c 'kill $PPID' >/dev/null 2>&1
}
echo "https://tower.scarif.space" | wl-copy
mkdir -p "$HOME/Tower"
nextcloud &
wait_for_copy
echo "$TOWERUN" | wl-copy
wait_for_copy
enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort copy "Scarif: Tower"
enpasscli -vault="$HOME/.local/share/Enpass/Enpass/Vaults/primary" -sort copy "Scarif: Tower"
read -s -k $'?Press enter when you have synced Nextcloud... \n'