Support pip3 and run on guest-agent service for redis

This patch will solve some following items:
- Support python3/ pip3
- Permit redis is running with guest-agent service

Tested with standalone, replicate and cluster successfully.

Change-Id: I81b72fae1c31ce2995232b52460d0ad0d6f894be
This commit is contained in:
Nguyen Van Trung 2019-10-19 23:58:26 +07:00 committed by Lingxian Kong
parent 0538208568
commit d5549f30cf
2 changed files with 12 additions and 1 deletions

View File

@ -113,4 +113,4 @@ ULIMIT=65536
_EOF_
# Install Python driver for Redis ('redis-py').
pip2 install redis
pip3 install redis

View File

@ -0,0 +1,11 @@
#!/bin/sh
# PURPOSE: Install redis required package in guest-agent-venv
set -ex
if [ $GUEST_VENV ]
then
# Install Python driver for Redis ('redis-py').
$GUEST_VENV/bin/pip3 install redis
fi