diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-17 22:35:14 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-17 22:35:14 +0200 |
| commit | 31ea8d85c83f6d0c185fd9c4a9ceaef12226d3f6 (patch) | |
| tree | 0b498b25c6dc83c65c1335c5c36d770fd54ed5d3 /scripts/bokftui-sudo | |
| parent | 804b31cc0c8415ebc79ccddf534dd09c5e6484a0 (diff) | |
| download | bokf-31ea8d85c83f6d0c185fd9c4a9ceaef12226d3f6.tar.gz bokf-31ea8d85c83f6d0c185fd9c4a9ceaef12226d3f6.zip | |
scripts: replace sudo credential wrapper with a Bitwarden launcher
brw/bw lookup in user space; optional token via custom field
Diffstat (limited to 'scripts/bokftui-sudo')
| -rwxr-xr-x | scripts/bokftui-sudo | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/scripts/bokftui-sudo b/scripts/bokftui-sudo deleted file mode 100755 index fc300ae..0000000 --- a/scripts/bokftui-sudo +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# Start bokftui with a credential from a root-only file, unlocked with sudo. -# Looks for /etc/bokf/tui-token (preferred) then /etc/bokf/tui-password. -# The server and user are remembered by bokftui itself in -# ~/.config/bokf/tui.conf. -set -eu - -sudo -v - -if token=$(sudo cat /etc/bokf/tui-token 2>/dev/null) && [ -n "$token" ]; then - BOKFD_TOKEN="$token" - export BOKFD_TOKEN -elif pass=$(sudo cat /etc/bokf/tui-password 2>/dev/null) && [ -n "$pass" ]; then - BOKFD_PASSWORD="$pass" - export BOKFD_PASSWORD -else - echo "bokftui-sudo: no /etc/bokf/tui-token or /etc/bokf/tui-password" >&2 - exit 1 -fi - -exec bokftui "$@" |
