deploy.sh: pass -H to sudo so pip doesn't warn about user cache.

Without -H, sudo keeps HOME pointed at the invoking user, so pip running
as root tries to write to /home/<user>/.cache/pip and disables caching
with a warning. -H resets HOME to /root while -E preserves the rest.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Paul Trowbridge 2026-04-22 23:59:23 -04:00
parent e6a615bf70
commit 1c3586eb2f

View File

@ -22,7 +22,7 @@ CONFIG_DIR="/etc/pipekit"
SECRETS_FILE="$CONFIG_DIR/secrets.env"
if [ "$EUID" -ne 0 ]; then
exec sudo -E "$0" "$@"
exec sudo -H -E "$0" "$@"
fi
echo "== pipekit deploy =="