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:
parent
e6a615bf70
commit
1c3586eb2f
@ -22,7 +22,7 @@ CONFIG_DIR="/etc/pipekit"
|
|||||||
SECRETS_FILE="$CONFIG_DIR/secrets.env"
|
SECRETS_FILE="$CONFIG_DIR/secrets.env"
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ]; then
|
if [ "$EUID" -ne 0 ]; then
|
||||||
exec sudo -E "$0" "$@"
|
exec sudo -H -E "$0" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "== pipekit deploy =="
|
echo "== pipekit deploy =="
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user